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.
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.
AdminCanLoot - allows the administrator to open any entity
CanAuthorizeCupboard - allows authorize in cupboards
CanLootCorpse - allows loot corpses
CanLootEntity - allows loot entities
CanRackedWeaponMount - allows mount weapon on weapon racks
CanRackedWeaponSwap - allows swap weapon on weapon racks
CanRackedWeaponTake - allows take weapon from weapon racks
CanRackedWeaponLoad - allows load weapon on weapon racks
CanRackedWeaponUnload - allows unload weapon on weapon racks
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
UseDynamicPVP - enable to use the Dynamic PVP to exclude the plugin from working in a dynamic zone
The plugin supports English and Russian by default.
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
This plugin uses the permission system. To assign a permission, use oxide.grant <user or group> <name or steam id> <permission>. To remove a permission, use oxide.revoke <user or group> <name or steam id> <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
This plugin provides both chat and console commands using the same syntax. When using a command in chat, prefix it with a forward slash: `/`.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
The settings and options can be configured in the PreventLooting file under the config directory. The use of an editor and validator is recommended to avoid formatting issues and syntax errors.AdminCanLoot - allows the administrator to open any entity
CanAuthorizeCupboard - allows authorize in cupboards
CanLootCorpse - allows loot corpses
CanLootEntity - allows loot entities
CanRackedWeaponMount - allows mount weapon on weapon racks
CanRackedWeaponSwap - allows swap weapon on weapon racks
CanRackedWeaponTake - allows take weapon from weapon racks
CanRackedWeaponLoad - allows load weapon on weapon racks
CanRackedWeaponUnload - allows unload weapon on weapon racks
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
UseDynamicPVP - enable to use the Dynamic PVP to exclude the plugin from working in a dynamic zone
Default Configuration
Localization
The default messages are in the PreventLooting file under the lang/en directory. To add support for another language, create a new language folder (e.g. de for German) if not already created, copy the default language file to the new folder and then customize the messages.The plugin supports English and Russian by default.