Magic Chest
Nobody enjoys rummaging through inventories to organize the contents. Why not hand that job down to the gremlins? Magic Chest auto-sorts your inventories while you have them closed, so that when you open them they are completely sorted and it's easy to find your stuff.
How It Works
1. Stacks of the same material are combined.
2. Stacks are sorted by item name.
3. Stacks of the same item name are sorted by Data (i.e. Wool Color)
4. Stacks with the same name and Data are sorted by Quantity (So the incomplete stack will be last)
- Note: Chests that are renamed in an anvil or that do not have the default Minecraft inventory title are excluded from sorting.
Before
After
Commands
/mgcs help: shows a command usage help page.
/mgcs on: turns auto-sorting on for the player that ran the command.
/mgcs off: turns auto-sorting off for the player that ran the command.
/mgcs invon: turns auto-sorting on for the players inventory when an item is picked up. (v1.2.4 and above)
/mgcs invoff: turns auto-sorting off for the players inventory. (v1.2.4 and above)
/mgcs reload: reloads all of MagicChest's config.
Permissions
magicchest.sort: Sorts all inventories that this player opens.
magicchest.sort.chest: Sorts chests that this player opens.
magicchest.sort.dispenser: Sorts dispensers that this player opens.
magicchest.sort.enderchest: Sorts ender chests that this player opens.
magicchest.sort.shulkerbox: Sorts a shulker box that this player opens.
magicchest.help: Shows a usage help.
magicchest.reload: Reloads all of MagicChest's config.
Reviews
cobwebster's (aka. ShinyTinselWorm) overview of MagicChest
Plugin Stats
Plugin Compatibility
dtlTraders- Avoids sorting TNPC inventories.
ChestCommands- Ignores sorting ChestCommands inventories.
FastCraft- Avoids sorting FastCraft menu.
AShops- Avoids sorting AShops inventories.
SkillAPI- Avoids sorting SkillTrees and other menus.
- If you have a problem with MagicChest sorting another plugins inventory or something like that please do not hesitate to leave a comment and let me know.
InventorySortEvent API (for plugin devs)
If you need to cancel MagicChest sorting an inventory, this is for you. Github Wiki
Massive shoutout & thanks to:
dandielo - making dtlTraders compatibility possible! Couldn't have helped folks without you!
timsavage - dtlTraders plugin compatibility request!
filoghost - author of the awesome ChestCommands plugin and the help and support of MagicChest! Couldn't have done it without your suggestion! :)
lecraeman - for requesting support of ChestCommands!
Kepler_ - author of FastCraft and supporter of MagicChest. Thanks for letting me know and working with me!
Metrics Information
Quote:This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
A unique identifier The server's version of Java Whether the server is in offline or online mode The plugin's version The server's version The OS version/name and architecture The core count for the CPU The number of players online The Metrics version Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.
@Jadedwolfs
I am going to talk to zonedabone about this and then I will add it if he says so. I don't wanna make too big of changes without asking first.
@Joymo
What I did was, I added /sort on and /sort off. All those do is give the user the permissions needed and removes the permissions, thus if a user wants it off /sort off, removes all permissions for the plugin, which also persists though logout. :P Soo, it's a nice work around if you want to make this toggle-able for your server.
Works great, OCD victims rejoice. PS can u make compatible with MyWolf: 11:09:18 [INFO] dank issued server command: /wi 11:09:18 [SEVERE] Could not pass event InventoryOpenEvent to MagicChest v1.0.4 org.bukkit.event.EventException
@Joymo
We'll look into that for you!
Could you add a toggle command or so, that disables automatic sorting for a player? Some players will want to auto-sort some chests, but not all of them...
@zonedabone
I am so sorry for that last release! I just fixed it. Waiting for approval now.
@uvbeenzaned
Looks like you built the latest version with java7. Can you upload a new version built with or compiled for compatibility with java6?
@vicente947
All the credit goes to @zonedabone for creating it, I am just an updater. Thanks for using the plugin!
@uvbeenzaned
Thanks you for make that fantastic plugin
@vicente947
Thanks for choosing us!
Great plugin now is used in my server
@zonedabone
Please check your pm's please.
@uvbeenzaned
There you go, added as author. I can put you on the github repo, too.
Github is here: https://github.com/zonedabone/MagicChest
I just took a look at the code, compiled it against the latest Bukkit build and just needed to change a few things and everything works perfect for 1.3.2 but his license states that you cannot change this plugin but that you can redistribute it. If I can get permission, I would be glad to release an update for everyone.
Please update soon, I love this plugin and I can't wait for it to update
I get a severe server error when when my players open a chest for a plugin called mywolf. I will try to post a comment with the maker of the plugin to, but the error is coming from your plugin I just know that it is happening whenever they use their wolf inventory.
Any future updates? I keep checking back every day to see if the item-slap-to-sort is implemented.
@zonedabone
Thanks! I'm so getting it in the next version when you add it.
@Blocker226
Sure! I'll add that for the next version.
Would it be possible to allow the chest to be sorted only if a player/owner hits it with a certain item like a stick?