UPDATE 1.5
________________________________________
I reworked the method how the cleaning item works. It is not longer using the method of the command (gets the block you're looking at), it is using the InventoryOpenEvent. That means
you can sort any inventory you can open
, other Plugins which are denying to open inventories are denying the sorting for them.
(!)
You can still sort chests of other players with the sorting command, if you don't want this, then you have to remove the permission of these commands for these players.
Here are the new permissions:
Code (Text):
chestcleaner.clean.item
chestcleaner.item.give (give a player the cleaning item /cleanitem give <player>)
chestcleaner.item.get (gives you the cleaning item)
chestcleaner.clean.playerinventory (cleaning the player inv with the command and the item)
chestcleaner.clean.chest (cleaning chest with the command)
chestcleaner.clean.enderchest (cleaning enderchests with the command)
chestcleaner.clean.shulkerbox (cleaning shulkerboxes with the command)
chestcleaner.config (configure the plugin, timer and cleanitem commands)
chestcleaner.* (Gives access to all chestcleaner commands)
chestcleaner.clean.* (Allows you to sort chests,enderchests, shulkerboxes and playerinventorys)