zaupclearinventorylib

last built 2 days ago
Build #216
By downloading this file, you agree to our license terms.
Source: github.com
License: MIT
Maintainer: Community Plugin
This plugin is maintained by the RocketMod Community.
The RocketMod team curates a dozen of community plugins and could need your support.
Consider a donation to RocketMod and sponsor your favourite plugins or contribute code to them.

ZaupClearInventoryLib

This plugin gives admins back the ability to clear inventories of themselves or others now that it has been removed from Rocket.

Permissions

  • 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

Default configuration


<?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" />

Commands and permissions


/ci /ci [name/self] [true]

Permissions: ci

/ci [name/self] [true] will clears your or someone else's inventory and true will remove clothes too.


Git changelog


4b684a62dbbd402 2019-05-22 15:45:38

Inital commit.