zaupclearinventorylib

#184 - published a year ago

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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <DeleteInventoryOnDeath>false</DeleteInventoryOnDeath>
</ZaupClearInventoryLibConfiguration>

Default english translation


<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />

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


44621d421b41ff1 2016-11-04 15:25:42

..

    33d3a2415c1b0e9 2016-04-14 13:42:23

    Update ZaupClearInventoryLib.cs

      8310348028241d8 2016-02-27 15:26:52

      Fix*

        ecce893f8497d4d 2015-12-23 18:23:42

        Fix

          a2ebe17dc4edf26 2015-12-23 15:10:13

          Fixing tellSlot

            3d8df33dd8c4884 2015-10-14 17:48:08

            ..

              e118f9c022959f4 2015-10-14 17:46:50

              For free...

                557972f7d0bb134 2015-10-14 17:08:05

                Clearning & Update

                  d1ce694c1561e07 2015-08-08 18:33:01

                  Merge branch 'master' of https://github.com/Zamirathe/ZaupClearInventoryLib.git

                    d415075fd1b1907 2015-08-08 18:32:38

                    Potential fix for clearing clothes

                      a9fa08bd3891190 2015-07-31 22:49:16

                      Create README.md

                        a56b9d77a4b652f 2015-07-31 22:31:53

                        Initial Release

                          bac51abe2883407 2015-07-31 22:26:29

                          Initial Release

                            Download

                            Build #184
                            By downloading this file, you agree to our license terms.

                            Repository

                            github.com

                            License

                            MIT

                            Author

                            Zamirathe