No way. Backpacks can be opened by the owners or their friends. If you want no one to open backpacks at all, you can try using the plugin NoBackpacks for Rust | Oxide
PreventLooting
Moved
Total Downloads: 956 - First Release: May 25, 2017 - Last Update: Jan 27, 2018
- 5/5, 6 likes
-
Prevent player from robbing Backpacks for Rust
-
Now you can try:
replace this line
Code:if((entity is DroppedItemContainer) && entity.name.Contains("item_drop_backpack"))
Code:if((entity is DroppedItemContainer) && (entity.name.Contains("item_drop_backpack") || entity.name.Contains("droppedbackpack")))
-
Ok, I'll try
-
Code:
{ "AdminCanLoot": true, "CanLootBackpack": false, "CanLootCorpse": false, "CanLootEntity": false, "CanLootPlayer": false, "ExcludeEntities": [ "mailbox.deployed", "Mining Quarry", "Pump Jack", "Large Furnace" ], "UseCupboard": true, "UseExcludeEntities": true, "UseFriendsAPI": false, "UseOnlyInCupboardRange": false, "UsePermission": false, "UseZoneManager": false, "ZoneID": [ "12345678" ] }
But it still cannot be plundered
help me,thank you -
For quarries and oil pumps, container names should be used. For example, fuelstorage, hopperoutput and crudeoutput. -
I'm sorry
Please help me
Write a specific one
"ExcludeEntities": [
"mailbox.deployed",
],
I need these three:"Mining Quarry","Pump Jack","Large Furnace"
thank you. -
Try this:
Code:"ExcludeEntities": [ "mailbox.deployed", "fuelstorage", "hopperoutput", "crudeoutput", "furnace.large" ],
-
What would be a good ExcludeEnities list for a PVE server to protect everyone's stuff. Basically prevent people from raiding other peoples stuff.
I am trying to play with this and learn it is the correct permissions
oxide.grant group admin preventlooting.admin
oxide.grant group default preventlooting.use
Should I give the default group anything else.
Code:{ "AdminCanLoot": true, "CanLootBackpack": false, "CanLootCorpse": true, "CanLootEntity": false, "CanLootPlayer": false, "ExcludeEntities": [ "mailbox.deployed" ], "UseCupboard": true, "UseExcludeEntities": true, "UseFriendsAPI": true, "UseOnlyInCupboardRange": true, "UsePermission": false, "UseZoneManager": false, "ZoneID": [ "12345678" ] }
Last edited by a moderator: Dec 27, 2017 -
You do not need an exception list, because by default everything that belongs to another player is blocked.
Exceptions are needed to ignore the blocking of certain items.
You only need permission preventlooting.admin if you are not the owner (authlevel 2) of the server. Permission preventlooting.use is only needed if you want to protect some players and use permission in config. -
CaseMan updated Prevent Looting with a new update entry:
1.5.0
-
@CaseMan if i use your plugin to prevent loot backpack it dont work, i look into the plugin code and i found this:
line 166 if((container as BaseEntity).name.Contains("item_drop_backpack")
i changed it to if((container as BaseEntity).name.Contains("droppedbackpack"))
and this work for me can u confirm this or is it just for me ? -
-
edit:
for now i solve it by this
if((container as BaseEntity).name.Contains("item_drop_backpack") || (container as BaseEntity).name.Contains("droppedbackpack")) -
For now you can use this line:
Code:if((container as BaseEntity).name.Contains("item_drop_backpack") || (container as BaseEntity).name.Contains("droppedbackpack"))
-
-
CaseMan updated Prevent Looting with a new update entry:
1.5.1
-
Hi!
I can not understand the settings of the plugin. I need to restrict access to only one mining career, without using chipboard, etc...
Help, please -
-
Hello possible to add clans support please?