How hard would it be for the inventories on Pumpjacks and Quarries to be added into the Prevent-Looting's tool?! Would be awesome if we could!
Pumpjacks/quarries lootable/non-lootable settingsSolved
In response to SharkAHolic ():How hard would it be for the inventories on Pumpjacks and Quarries to be added into the Prevent-Loot...
Any item that has an owner is protected from looting. If it is a publicly available item, it cannot be protected, becouse owner is 0. If you give out private quarrys and pumpjacks, then you need to make the player the owner of this item.
In response to SharkAHolic ():They drop in barrels for people to use and are available in our /shop :) How do I go about making th...
When players place an item, the owner is automatically assigned to the item. If players install quarries and pump jacks as it was before taking them out of the game, then the owner must be set automatically. If quarries and pump jacks are placed using the plugin command, then you need to assign the owner in this plugin or do it manually.
Example code for setting owner for placed entity(item) for plugin on c#:
Example code for setting owner for placed entity(item) for plugin on c#:
entity.OwnerID = player.userID; Locked automatically