Provides protection of players' entities from looting by other players

Supported Games

Prevent Looting provides protection for entity of player (boxes, furnaces, careers, etc.) from looting by other players. Ideal for PVE servers, but can be used for PVP. The plugin supports in-game teams, FriendsAPI, ZoneManager and permissions.

You can configure the plugin to work only in the range of the cupboard or not. And all who will be authorized in the cupboard will have the opportunity to loot.

Attention:* When anyone try to loot sleeper, his inventory will open, but did not open sleeper inventory, because so the hook of Oxide works - it prevents the opening of the inventory of another player, but did not prevent sending of the RPC to the client.

Dependencies

Using Friends API allows you to allow your friends access to your entities. Using Zone Manager allows you to disable the plugin in certain zones.

Permission

  • preventlooting.use -- Permission to use commands
  • preventlooting.player -- Prevents looting of a player thats having permission
  • preventlooting.corpse -- Prevents looting of a corpse of a player thats having permission
  • preventlooting.backpack -- Prevents looting of a backpack of a player thats having permission
  • preventlooting.storage -- Prevents looting of a storage of a player thats having permission
  • preventlooting.admin -- For admins and moderators, duplicating the option "AdminCanLoot" in the config for use without the privileges of the admin

Commands

If you want to share an entity with other players, you can use chat commands. To use commands, you need to look at your entity.

  • /share -- Allow access to all players
  • /share <username> -- Allow access only to certain players
  • /unshare -- Deny access from all players
  • /unshare <username> -- Deny access to specific players only
  • /sharelist -- List of permissions for the entity
  • /shareclear -- Clear the list of permissions for the entity
  • /checkit -- Checking loot protection

Configuration

AdminCanLoot - allows the administrator to open any entity

CanAuthorizeCupboard - allows authorize in cupboards

CanLootCorpse - allows loot corpses

CanLootEntity - allows loot entities

CanLootPlayer - allows loot players

CanLootBackpack - allow loot backpacks

CanLootBackpackPlugin - allow loot backpacks from plugin Backpacks

CanPickup - allow pickup elements of construction and decoration (doors, windows, decor, etc)

CanOvenToggle - allow turn on or off ovens (furnaces, lamps, etc)

UseCupboard - enable to share entities if cupboard authorization, in cupboard radius

UseCupboardInclude - list of types to loot with parameter UseCupboard. Types available: storage, pickup, player, corpse, backpack, backpackplugin. The default value is recommended. Note: with "UseCupboardInclude" values: storage, player, corpse, backpack, backpackplugin - allowing loot only when both player auth in cupboard!

UseOnlyInCupboardRange - enable to use the plugin only in the coverage area of cupboard

UseOnlyInCupboardRangeInclude - list of types to loot with parameter UseOnlyInCupboardRange. Types available: storage, pickup, player, corpse, backpack, backpackplugin. The default value is recommended.

ExcludeEntities - list of excludes

UseExcludeEntities - enable to use of excludes list

UseFriendsAPI - enable to use Friends API

UseTeams - enable to use in-game teams

UsePermission - enable to use permissions

UseZoneManager - enable to use the Zone Manager to exclude the plugin from working in a certain zone

ZoneManagerIncludeMode - enable to exclude plugin in all zones and use "ZoneID" list to include the plugin to working in a certain zone

ZoneID - list of zones in which the plugin will be included or excluded

Default Configuration

{
  "AdminCanLoot": true,
  "CanAuthorizeCupboard": true,
  "CanLootBackpack": false,
  "CanLootBackpackPlugin": false,
  "CanLootCorpse": false,
  "CanLootEntity": false,
  "CanLootPlayer": false,
  "CanOvenToggle": false,
  "CanPickup": false,
  "ExcludeEntities": [
    "mailbox.deployed"
  ],
  "UseCupboard": false,
  "UseCupboardInclude": [
    "storage"
  ],
  "UseExcludeEntities": true,
  "UseFriendsAPI": true,
  "UseOnlyInCupboardRange": false,
  "UseOnlyInCupboardRangeInclude": [
    "storage"
  ],
  "UsePermission": false,
  "UseTeams": true,
  "UseZoneManager": false,
  "ZoneManagerIncludeMode": false,
  "ZoneID": [
    "12345678"
  ]
}

Localization

The plugin supports English and Russian by default.

MIT License


Copyright (c) 2018 CaseMan


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.