ChestCleaner - Sorting Plugin (+API) icon

ChestCleaner - Sorting Plugin (+API) -----

ChestCleaner sorts your chests and inventories. (+ Autorefill for items in the hotbar)






I fixed the click sort issue.
Spigot removed the option to track middle mouse click in survival mode, thus i changed it. Now you can sort using right click like you used the middle mouse button. The middle mouse button can still be used if spigot supports it, so just give it try.
----------, Dec 4, 2021


The github release: https://github.com/tom2208/ChestCleaner/releases/tag/v2.3.2

What changed:
  • The auto refill is now using the stacks form the hotbar too except the items which you are holding
  • a bug was fixed which caused error messages on the event an item breakes or gets damaged
----------, Oct 21, 2020

Removed debug message, which send you the type of block you placed.
----------, Oct 13, 2020

GitHub Release: https://github.com/tom2208/ChestCleaner/releases/tag/v2.3.0

Added:
  • a blacklist of refill items got implemented (entries will no longer get refilled)
Bug Fixes:
  • tools which "placed" a block no longer getting replaced by autorefill (example hoe which creates dirt from coarse dirt)
  • autorefill replaced the item in the scondary slot if a armor piece breaked
  • some items have not the same Material ID if they get placed (example normal torch has the id: TORCH, a torch placed on the wall has the id: WALL_TORCH) this bug was fixed for many items:
  • all kinds of seeds
  • all kinds of signs
  • Strings
  • potatos and carrots
  • sweet berries
  • redstone dust
  • all kinds of torches
----------, Oct 11, 2020

Bug Fixes:
  • Since consumables couldn't be refilled by a stack with the amount of one, because the clientr would make the item invisible. Thats fixed now: the item gets put into the inventory after waiting one game tick.
  • Refill items of Breakables like tools will no longer get deleted when breaking in combat. We use the some one-tick waiting method form above.
  • Clicksort will no longer sort inventories that create gamebreaking item reordering. Like swaping the saddle and a block in an mule inventories. Or in the case of an llama inv, we have a hidden slot the player can't see. The sorting alogrith puts items into this hidden slot. Another example is the oven, swaping coal and meat.
    In this cases ClickSort will sort the inventory of the player.
----------, Aug 27, 2020

Added:
  • You can now sorts via middle-mouse-clicking outside of an inventory (but only in survival mode)
  • you can reset your individual category configuration now
Change:
  • New Spigot API Version: 1.16.2-R0.1-SNAPSHOT
----------, Aug 23, 2020

GitHub Link: https://github.com/tom2208/ChestCleaner/releases/tag/v2.1.0

New:
  • you can now toggle the sorting notification and the sorting sound (for server default and individualy with (sortingadmin & sortingconfig command)
  • new reset command (sortingconfig reset) to reset the individual configuration
  • autorill for breakable items like tools etc. + configuration of this autorill type
  • sorting own and others inventory with "cleaninventory own"
  • you can remove categories now (sortingadmin categories remove )

Bug Fixes:

  • we fixed a bug which caused showing the wrong categories for indivdual configuration (sortingconfig categories)
  • Auto Refill will no longer replace an block, if worldguard denied the placing.

    We know about the problem that the .properties files are not de/encoded in UTF-8, thats a java issue and we have to work around that. We are searching for an nice solution.
----------, Aug 18, 2020

A bug was fixed which caused the not-openEvent-mode to not avoid cave air block, that resulted in not being able to sort in this mode in caves.
----------, May 10, 2020

A bug got fixed which caused the permission for "set auto sort" to work not properly.
----------, May 3, 2020

For all changes: https://github.com/tom2208/ChestCleaner/wiki/Changelist-2.0

The whole Plugin got reworked. To get started again: here you can find a migration guide: https://github.com/tom2208/ChestCleaner/wiki/Migration-Guide-2.0

The new wiki link: https://github.com/tom2208/ChestCleaner/wiki
----------, Apr 26, 2020

- A bug was fixed where player data was not removed or not loaded correctly (sorting patterns and evaluators, autosort settings)
- A bug which caused an issue with setting individual player settings was fixed.
- Old code was reworked

+ autosort now sorts ender chests and trapped chests too (instead of just chests)
----------, Mar 14, 2020

- New sorting algoriths and configuration options.

- New sorting control command (for more information read the main article of this plugin)

- a bug was fixxed where the wrong player name was displayed if you gave another player the cleaning item with /cleaningitem give <player>

- you can now use @a in /cleaningitem give <@a/player> to give every online player a cleaningitem.

- autosorting was added
----------, Sep 16, 2019

I got an bug report by "MrAmericanMike": "When right clicking Logs with an Axe to get stripped logs, if you already have those logs in inventory, the plugin will delete our axe and place those logs in our hand."

That is fixxed now.
----------, Aug 28, 2019

[NEW] IteratorMode ( EventDetectionMode = false) is now ignoring grass, signs, item frames, torches and carpets. (an example of what issue is fixxed now can you find here: https://www.spigotmc.org/threads/chestcleaner-sorting-plugin.237322/page-9)

[NEW] InventoryBlackList : The entries of the inventory blacklist are materials that will get ignored by trying to sort an inventory ( is only working in IteratorMode or EventDetectionMode = false). For example you can put a furnace onto the list, then you will not be able to sort furnace inventories.

How does it work using the blacklist command?
I modified the /blacklist command: the first argument of the command is the list you want to modify the second argument are the old ones you know form the old command.

/blacklist <list/clear/addMaterial/removeMaterial> ===> /blacklist <inventories/sorting> <list/clear/addMaterial/removeMaterial>

[NEW] If a block does not contain an inventory, if you sort something with the command, you will get the information of the material of the block in the error message.
----------, Jul 3, 2019

[BUG-FIX] durabilityloss boolean gets read correctly now.

[BUG-FIX] TabCompleter will not show suggestions that are not intended

[BUG-FIX] A bug was fixed, where a few item stacks got shifted some slots to the side.

[BUG-FIX] Stacking issue: stackable cleaning items where sometimes unable to stack together.

[ADDED] Blacklist: A list of item materials that get ignored by the stacking algorithm, means they will not get merged to max stacked stacks.

[ADDED] Command: /BlackList <list/clear/addMaterial/removeMaterial>
permission for using that command: "chestcleaner.cmd.blacklist"

[REPLACED] deprecated method-uses.

[ADDED] You can now use the cleaning item in both hand slots. Except holding one in both hands (I'm trying to get that thing working).

[ADDED] some syntax error messages.
----------, Jun 10, 2019

[Fix] - " sneaking + right clicking" is now sorting you own inventory in eventdetectionmode and in interationmode (eventdetectionmode false)
- a permission was added ("chestcleaner.cleaningitem.use.owninventory")

[NEW] TabCompleter was added to the commands.

[CHANGE] /cleaningitem setdurability <true/false> was changed to /cleaningitem setdurabilityloss <true/false> . The permission of that subcommand was changed too: chestcleaner.cmd.cleaningitem.setdurability -> chestcleaner.cmd.cleaningitem.setdurabilityloss .
Now it's more clear what this command really means.
----------, Jun 6, 2019

You will get a message, if there is an update of my plugin available .
(To get the message you have to be operator or have the persmission "chestcleaner.update")
----------, Jun 5, 2019

[bug fix] in 1.6-1.6.1.2 entchantments (and other meta datas) on items got copied on similar items. Thats fixxed now.
----------, Jun 5, 2019

[Bug fix] It works on 1.13 again.
----------, Jun 2, 2019

You can now disable correctly (/cleaningitem setdurability false), that stackable items will no longer get reduced, if they are used as a sorting item.
----------, Jun 2, 2019

You can now use stackable items as the cleaning item. If you use an iron ingot, for example, its amount will reduced by one, if you have activated the durability loss (/cleaningitem setDurability true).
----------, Jun 1, 2019

For informations, see the main page.
----------, May 25, 2019

Chestcleaner is now supporting Minecraft v.1.8 again. Block refilling works fine and everything else too exept the consumables refill function.
Consumables autmatic refill fill not work with Spigot v.1.8.
Spigot v1.9 - 1.13 still can use this function.
----------, Sep 21, 2018

Consumables and blocks can now get autofilled.
/autorefill <blocks/consumables> <true/false>

Minecraft Vanilla 1.8 will not work with this plugin version, use 1.5.2 instead. (I will fix this soon)

new permissions:
Code (Text):

chestcleaner.clean.item
chestcleaner.item.give (give a player the cleaning item /cleaningitem 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 cleaningitem commands)
chestcleaner.* (Gives access to all chestcleaner commands)
chestcleaner.clean.* (Allows you to sort chests,enderchests, shulkerboxes and playerinventorys)
chestcleaner.autorefill.config (allows the configuration of autorefill)
chestcleaner.autorefill.consumables (allows using the autorefill function for consumables)
chestcleaner.autorefill.blocks (allows using the autorefill function for blocks)
----------, Sep 20, 2018

- ChestCleaner is now working with mincraft versions: 1.8, 1.9, 1.10, 1.11, 1.12, 1.13

- the default cleaning item was changed, it is now an iron hoe.

- IF YOUR PLUGIN IS NOT WORKING: delete the ChestCleaner folder in the plugin folder and restart or reload the server
----------, Aug 9, 2018

You can use ChestCleaner now without errors on version 1.8.
You will not here an sorting sound in version 1.8 of minecraft anymore. That caused the error.
----------, Aug 8, 2018

UPDATE 1.5.1

[~] the command "cleanitem" was renamed to "cleaningitem"

[+]
You can now add lore to your items (use /cleaningitem)

[+]
You will hear a sound now, if you're sorting a inventory

[+] some bugs got fixed
----------, Feb 6, 2018

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)
----------, Feb 5, 2018

The error whichs caused the item error event (deleting items), got fixxed.
The sorting system is working fine now, like before.
----------, Jan 29, 2018

Hard Fix (some items got deleted, that is now fixed)
----------, Jan 29, 2018

UPDATE 1.4.9.d
-------------------------------

[~] a new more efficient sorting method

[ERROR-FIX] i fixed a bug which caused error messages in the console
----------, Jan 28, 2018

You can now use my plugin on 1.12 Servers, now without errors.
----------, Jul 6, 2017

ChestCleaner is now working for 1.11
----------, Jun 8, 2017

Fixing Error-Message caused by the old version 1.8.
I used a method which is only aviable in 1.9+.
----------, Jun 4, 2017

UPDATE
____________________________________________________

[+]
You can now configure the messages of this plugin in the config.yml
----------, Jun 3, 2017

Fixed:
If you're holding an item in your off-hand and if you sort an inventory it sorts your inventory only one time now.

API fix:
If you cancel the sorting event the cleaning item, if you are using it, will not taken damge anymore.
----------, May 25, 2017

UPDATE 1.4.8

[+] A new API

New and better permissions:
Code (Text):
chestcleaner.clean.item.chest (cleaning chests with the cleaningitem)
chestcleaner.clean.item.enderchest (cleaning enderchests with the cleaningitem)
chestcleaner.clean.item.shulkerbox (cleaning shulkerboxes with the cleaningitem)
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)
 
----------, May 22, 2017

UPDATE 1.4.7

new permissions:
Code (Text):
chestcleaner.clean.item.chest (cleaning chests with the cleaningitem)
chestcleaner.clean.item.enderchest (cleaning enderchests with the cleaningitem)
chestcleaner.clean.item.shulkerbox (cleaning shulkerboxes with the cleaningitem)
chestcleaner.item.give (give a player the cleaning item /cleanitem give <player>)
chestcleaner.item.get (gives you the cleaning item)
chestcleaner.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 and shulkerboxes)
_______________________________________________
[+]
new syntax and permissionerror messages
----------, May 20, 2017

UPDATE 1.4.6

[+] The new /cleanitem get command gives you the cleaning item

BUGFIX: You can only choose names for your cleaningitem with two or more arguments + message if you do a syntax error (/cleanitem rename)
----------, May 16, 2017

UPDATE 1.4.5

[+] You can now use a name with spaces for your cleaning item.
---> (/cleanitem rename <arg1> <arg2> .... <argn>)
----------, May 16, 2017

UPDATE
[+] You can rename your cleaning item now! /cleanitem rename name (colors with &x)
You can give a player the item with /cleanitem give player

Permissions:

Code (Text):
cleanchest.clean.item.chest (cleaning chests with the cleaningitem)
cleanchest.clean.item.enderchest (cleaning enderchests with the cleaningitem)
cleanchest.clean.item.shulkerbox (cleaning shulkerboxes with the cleaningitem)
chestcleaner.item.give (give a player the cleaning item /cleanitem give <player>)
cleanchest.playerinventory (cleaning the player inv with the command and the item)
cleanchest.clean.chest (cleaning chest with the command)
cleanchest.clean.enderchest (cleaning enderchests with the command)
cleanchest.clean.shulkerbox (cleaning shulkerboxes with the command)
chestcleaner.config (configure the plugin, timer and cleanitem commands)

ERROR FIX ERROR if you clicked in the air, this is now fixed.
----------, May 14, 2017

UPDATE

[+]
You can use your cleaningitem to sort your inventory (SHIFT + RIGHTCLICK)

New permissions:
Code (Text):
cleanchest.clean.item.chest (cleaning chests with the cleaningitem)
cleanchest.clean.item.enderchest (cleaning enderchests with the cleaningitem)
cleanchest.clean.item.shulkerbox (cleaning shulkerboxes with the cleaningitem)
cleanchest.playerinventory (cleaning the player inv with the command and the item)
cleanchest.clean.chest (cleaning chest with the command)
cleanchest.clean.enderchest (cleaning enderchests with the command)
cleanchest.clean.shulkerbox (cleaning shulkerboxes with the command)
chestcleaner.config (configure the plugin, timer and cleanitem command)
----------, May 14, 2017

I removed all short commands, so ChestCleaner works better with other plugins.
----------, May 13, 2017

Fixes (plugin.yml)
- ci command (removed)
----------, May 13, 2017

Update 1.4
___________________________________________________

[+] /Timer <setActive/setTime>
Permission: ChestCleaner.Config
Timer: Cooldown for the cleaning commands and the cleaning item

___________________________________________________
----------, May 13, 2017

I fixed the version in the plugin.yml
0.1 -> 1.3
----------, May 11, 2017

i fixed a upload bug
----------, May 10, 2017

Update 1.3
_______________________________________________________

[+] sorting/cleaning ShulkerBoxes
Permissions:
- ClearChest.Clean.Item.ShulkerBox (sorting with the item)
- CleanChest.Clean.ShulkerBox (Command /cc /cleanchest)

Fixes:
- Fixing permissions ( Clear -> Clean )
----------, May 10, 2017

You can use ChestCleaner now on your 1.8-1.11 Server.
----------, May 5, 2017

You can use Chestcleaner now on your 1.8, 1.9 & 1.10 Spigot-Servers.
----------, May 4, 2017

Version 1.2
______________________________________________________________


[+] You can now use items instead of the /cc or /clearchest command.
Configuration:
- /cleanitem setActive <true/false> (funktion is activated)
- /cleantem durability <true/false> (item get durability by using it to sort)
- /cleanitem setItem - (item you're holding in your (main (MC1.9)) Hand)
Permissions:
- ChestCleaner.Config (for /clearitem or /ci)
- CleanChest.Clean.Item.Chest (sorting chests with the clearing item)
- CleanChest.Clean.Item.EnderChest (sorting enderchests with the clearing item)

Default Config:
Code (Text):

cleaningItem:
  ==: org.bukkit.inventory.ItemStack
  type: GOLD_HOE
active: true
durability: true
 
But this config will generate automaticly, with your own settings.

[+] Permission: CleanChest.Clean.EnderChest, is now working without CleanChest.Clean.Chest
----------, May 3, 2017

Update 1.1
__________
[+]
You can now sort/clean your inventory!
- CMD: /clearplayer or /cp
Only 9-35 (ID) slots get sorted by the command, that means the command has no effect on the hotbar, the Armor and the second hand slots.
Permission: CleanChest.PlayerInventory

Fixes:
- Error Message: (/clearchest) /clearchest x y z x2 y2 z2 -> /clearchest
(/cc) /clearchest x y z x2 y2 z2 -> /cc
----------, May 2, 2017

You can use my plugin now on your 1.8 & 1.9 spigot server.
----------, May 2, 2017

Resource Information
Author:
----------
Total Downloads: 64,224
First Release: May 1, 2017
Last Update: Sep 4, 2022
Category: ---------------
All-Time Rating:
46 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings