ChestCleaner - Sorting Plugin (+API) 1.5.3.1

ChestCleaner sorts your chests and inventories.

  1. EnderKing
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    ENGLISH:
    _______________________________________________________

    Thank you for over 3000 Downloads!
    This plugin is made for cleaning inventories. What can you do with my plugin:
    - cleaning player inventory [available (v1.1)]
    - cofiguration file and commands [available (v1.2)]
    - an item instead of the cc or cleanchest command [available (v1.2)]
    - ShulkerBox cleanable [available (v1.3)]
    - you can clean enderchests
    - Timer [available (v.1.4)]
    - SHIFT + RIGHTCLICK with the cleaning item to sort your inventory [available (v1.4.3)]
    - Blocks and Consumables like Food can automatically get refilled form your inventory into your hotbar [available (v.1.5.3)]
    - configure the plugin messages in the chestcleaner/config.yml [availavle (v.1.4.9)]
    - configure the lore of the cleaning item [availavle (v.1.5.1)]

    - blacklist for items that will be ignored by the sorting algorithm [comming soon]

    Please tell me your ideas/wishes for new functions and report bugs, so i can fix them.

    Tricks:
    - You can disable (by perssions) the command function for players, then they can't sort other players (protected) chests. They can only sort there own inventories (inventories they can open) with the cleaning item then.

    - You can select a craftable or stackable item for your cleaning item. If you do so players can craft their items themself, using sources to "pay" for the sorting, like the gold for the golden hoe.
    If you pick a craftable item for example a gold nugget, then the item gets removed from your inventory, like you're "paying" an item, in my example a gold nugget.

    Using the cleaning item: Click on a block (with your cleaning item) with an inventory you are able to open, then you will get a message "inventory sorted" (you can change the text in the config) and the inventory gets sorted. You can sort your own (player)inventory by sneaking and right-clicking into the air (in this case you will get a "inventory sorted" message too).

    German explanation: Dieses Plugin ist zum sortieren von Inventaren, seien es Truhen, Endertruhen, Shulkerboxen, oder das eigene Inventar. Die Inventare können mit einem Kommando oder auch einem Item (CleaningItem) sortiert werden.
    _______________________________________________________

    [​IMG]

    ________________________________________________________
    CMD & Permissions:

    - /cleanchest (to clean a chest, shulker box or enderchest)
    - /cleaningitem setActive <true/false> (enable / disable this funktion)
    - /cleaningitem durability <true/false> (enable / disable that items lose durability by using it to sort)
    - /cleaningitem rename <name> (colors with &x (&a green) http://minecraft.gamepedia.com/Formatting_codes)
    - /cleaningitem give <player>
    - /cleaningitem setItem (item you're holding in your (main (MC1.9)) Hand)
    - /cleaningitem setLore &6This is an example lore! /n&aNow im using green in a new line! (colors with &x (&a green) http://minecraft.gamepedia.com/Formatting_codes ; create a new line by using "/n")
    - /cleanplayer (cleaning player inventory)
    - /timer setActive <true/false> (enable / disable this funktion)
    - /timer setTime <time> (sets the cooldown time in sec. for the sorting funktions)
    - /autorefill <blocks/consumables> <true/false>

    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)
     
    _____________________________________________________
    VIDEO
    This videos are not showing every function of this plugin:
    Thank you for this Videos!

    english:



    turkish:


    Chinese:



    Some of these videos are using the "cleanitem" command, it is "cleaningitem" now (v.1.5.1)!

    _____________________________________________________
    API (Version 1.5.1)

    class SortingInventoryEvent(Player p, SortingType t) - extends Event implements Cancellable
    This events triggers if an inventory gets sorted.

    Player p is the player who triggered the event.
    SortingType t is the sorting type of the event (Sortingtype is an enum, it includes: COMMAND, CLEANING_ITEM and OTHERS)

    It triggers if a inventory gets sorted.

    How to trigger it by your self?
    Code (Text):
    SortingInventoryEvent e = new SortingInventoryEvent(p, t, b, name);
    Bukkit.getPluginManager().callEvent(e);
    if(!e.isCancelled()) do your sorting here;
     
    Methodes:

    Player - getPlayer() - returns the player who triggered the event
    SortingType - getSortingType() - returns the sortingtype of the event (Sortingtype is an enumy, it includes: COMMAND, CLEANING_ITEM and OTHERS)

    class Sorting()
    This class includes methodes to sort inventorys.

    Methodes:

    void - sortShulkerBox(ShulkerBox b) - sorts a shulker box inventory. (b the shulker box of the inventory)
    void - sortEnderChest(Player p) - sports the enderchest of the player p
    void - sortChest(Block b) - sorts the chest b
    void - sortinventory(Inventory inv) - sorts the inventory inv
    void - sortInventory(Inventory inv, int slot1, int slotn) - sorts the slots slot1-slotn in the inventory inv (is not working at the moment)
    _____________________________________________________
    Default-Config:
    Code (Text):
    messages:
    - '&cI''m sorry, but you do not have permission to perform this command.'
    - '&cYou can sort your next inventory in &4%cooldown% sec.'
    - '&aInventory sorted.'
    cleaningItem:
      ==: org.bukkit.inventory.ItemStack
      v: 1519
      type: IRON_HOE
    active: true
    durability: true
    timer: false
    automatic_block_refill_from_inventory: true
    block_refill: true
    consumables_refill: true
     

    (!) for ' use ''
    (!) for § use &
    (!) %player% for the player who get the message
    (!) %cooldown% for the sorting-cooldown of the player who get the message
    _____________________________________________________

    Images

    1. 2017-05-01_14.06.55.png
    2. 2017-05-01_14.07.52.png
    3. 2017-05-01_14.08.54.png
    4. 2017-05-01_14.09.39.png
    5. 2017-05-02_18.58.51.png
    6. 2017-05-02_18.59.22.png
    7. Bild.gif

Recent Reviews

  1. SirMaurice
    SirMaurice
    4/5,
    Version: 1.5.3.1
    Nice work you did there, BUT there is one problem that is really annoying, i cant disable the permissions.
    Its a real problem, my users cant sort their chests and inventories, could you make an option in the config to disable the permissions? Or add an option what people can do without being operator.
    Your doing a great job, keep it going.
    1. EnderKing
      Author's Response
      Thank you, good idea. I will rework the whole plugin soon and i will add this feature then.
  2. lightPlugins
    lightPlugins
    3/5,
    Version: 1.5.3.1
    Works with 1.13.2. But there are missing translation lines in the config.yml. You cannot translate all
  3. T43DiamondGamer
    T43DiamondGamer
    5/5,
    Version: 1.5.3.1
    Great Plugin. Has helped me a great deal. Would be even better if you could bind the commands to an item e.g. a stick (wand). Click chest with stick and it sorts it for you.
    1. EnderKing
      Author's Response
      Thank you for the five stars,
      this item fuction thing is allready implemented. Just use the golden hoe.
      ~ Tom
  4. Gustavo_Player
    Gustavo_Player
    5/5,
    Version: 1.5.3.1
    Add an option in the settings to leave the feature always on, without the need to enter the command.
    1. EnderKing
      Author's Response
      Thank you for the 5 stars. This feature sounds interesting, i will add it.
  5. mhemperors
    mhemperors
    5/5,
    Version: 1.5.3.1
    Alot Of Player on my Server Say This is the Amazin Plugin Tnx.! Keep Work update
    1. EnderKing
  6. MrGhostMark
    MrGhostMark
    5/5,
    Version: 1.5.2
    Nice plugin that works for 1.13.

    I like being able to use either an item or a command.
    1. EnderKing
      Author's Response
      Thanks ^^
  7. Thomas1
    Thomas1
    5/5,
    Version: 1.5.1.2
    Very nice Skyblock-addon, i love it.....
    hope more new features such as players have to waiting a specify time to clean the chest after Shift + Right Click and there is a Holo text....
    ex: John Shift + Right Click to a chest to clean it, after that a delay in specity times with holo text spawn above the chest like "Cleaning chest in 10 seconds. Please wait...."

    ps: sry for my bad English :P
    1. EnderKing
      Author's Response
      Thank you! ^^
  8. angelosilva09
    angelosilva09
    5/5,
    Version: 1.5.1
    ===========================================================
    Very good i use in SkyBlock
    ===========================================================
    1. EnderKing
      Author's Response
      Thank you!
  9. anemul
    anemul
    5/5,
    Version: 1.5.1
    Very good , I like the cleaning item and the fact it has a cool down . Awesome job , good resource for any server to have .
    1. EnderKing
      Author's Response
      Thank you! :)
  10. VanDuc
    VanDuc
    5/5,
    Version: 1.4.9.d
    Awesome plugin! Useful for Skyblock servers. Hope the next update with more new features! <3 <3 <3 <3 <3
    1. EnderKing
      Author's Response
      Thank you <3