PreventLooting

Moved

Total Downloads: 956 - First Release: May 25, 2017 - Last Update: Jan 27, 2018

5/5, 6 likes
  1. 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
     
  2. Prevent player from robbing Backpacks for Rust
     
  3. I will add it in the next version.
    Now you can try:
    replace this line
    Code:
    if((entity is DroppedItemContainer) && entity.name.Contains("item_drop_backpack"))
    with this line
    Code:
    if((entity is DroppedItemContainer) && (entity.name.Contains("item_drop_backpack") || entity.name.Contains("droppedbackpack")))
     
  4. Ok, I'll try
     
  5. 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"
      ]
    }
    I set up the exclusion
    But it still cannot be plundered
    help me,thank you
     
  6. You need to use the correct prefabs. You can use this EntityOwner for Rust | Oxide to find the right prefabs.
    For quarries and oil pumps, container names should be used. For example, fuelstorage, hopperoutput and crudeoutput.
     
  7. 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.
     
  8. Try this:
    Code:
    "ExcludeEntities": [
    "mailbox.deployed",
    "fuelstorage",
    "hopperoutput",
    "crudeoutput",
    "furnace.large"
    ],
     
  9. 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


  10. 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.
     
  11. CaseMan updated Prevent Looting with a new update entry:

    1.5.0

     
  12. @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 ?
     
  13. You mean a backpack from Backpack plugin?
     
  14. yes, ah ok i see u mean this config "CanLootBackpack": false, the backpack from players drop/rust default backpack, my fault can u add the backpack from backpack plugin too in yor config ?

    edit:

    for now i solve it by this
    if((container as BaseEntity).name.Contains("item_drop_backpack") || (container as BaseEntity).name.Contains("droppedbackpack"))
     
  15. OK. In near future.
    For now you can use this line:
    Code:
    if((container as BaseEntity).name.Contains("item_drop_backpack") || (container as BaseEntity).name.Contains("droppedbackpack"))
     
  16. ok thanks
     
  17. CaseMan updated Prevent Looting with a new update entry:

    1.5.1

     
  18. 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
     
  19. You can add everything that you do not need to block to the exclusion list. Keep in mind that static queries do not have an owner and can not be blocked!
     
  20. Hello possible to add clans support please?