This plugin gives admins back the ability to clear inventories of themselves or others now that it has been removed from Rocket.
- ci to clear your own inventory
- ci.other to clear someone else’s inventory
NOTE: I am aware of an issue where if you clear the clothing and you pick something else up, you will be wearing some non-clothing items. Not sure what is causing this. This could also cause someone to not be able to log in after having their inventory clothing cleared. Please proceed with caution and use at your own risk.
For Plugin Developers
This plugin can also be used like a library to provide clear inventory calls within your own plugins. Please look at the source code for the command, as you will have to replicate any checks needed before doing the call to clear. Both functions return false if there was an error which is reported to console and true if it was successful.
- ZaupClearInventoryLib.Instance.ClearInv(UnturnedPlayer player) – clears the items in player’s inventory
- ZaupClearInventoryLib.Instance.ClearClothes(UnturnedPlayer player) – clears the clothes on player BUGGY
<?xml version="1.0" encoding="utf-8"?> <ZaupClearInventoryLibConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <DeleteInventoryOnDeath>false</DeleteInventoryOnDeath> </ZaupClearInventoryLibConfiguration>
Default english translation
<?xml version="1.0" encoding="utf-8"?> <Translations xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />