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.
@lecraeman
Ok I know we were talking about MagicChest earlier and apparently I was wrong about the permissions! I didn't write this plugin originally and I got confused! Sorry for the misleading information. Do like I said originally and remove all current magicchest perms and then ONLY add magicchest.sort to the VIPs that you want to have it. The permissions as of an older version don't default to on! I am so sorry! I just tested it myself on my server.
@uvbeenzaned
Oh...
I don't want everyone to be able to use it...just the gold and vip members, but because it has inheritance...would I need to re-add the permissions?
@lecraeman
If you want people to use it don't do anything with the permissions. If you don't want people to use it, negate the permission. In other words do -magicchest.sort
I don't know why, but for some reason my permission nodes for this plugin are no longer working :(
I am using PEX, and just recently redid my permissions to use inheritance, but kept the exact permissions, but now it will not work :(
@bradgillap
Please report issues and any incompatibilities here: https://github.com/zonedabone/MagicChest/issues
Can you turn on your ticket system on this page so I can keep better track of issues through subscriptions?
@bradgillap
@jhicks32917
I will check into compatibility for both of these plugins guys! Thanks for letting me know!
MagicChest is sorting my Simple GUI menus. Is there some way I can force it to ignore my GUI plugin or force it to ignore two spots on the inventory bar?
This one
http://dev.bukkit.org/bukkit-plugins/gui/
I have too many hours invested into this GUI plugin to walk away from it so anything you can do would be much appreciated.
@uvbeenzaned
Oh that's a little backwards. Okay I can make that change. Thanks for replying.
Hello,
Thanks for the plugin, it's very well made, but I'm having compatibility issues with SkillAPI's Skill Tree system. SkillAPI creates skill trees using an inventory but MGCS sorts it.
@ssSkillzzz
@bradgillap
I am so sorry guys. I forgot... All of the permissions for MagicChest default to allow. Don't add any perms for MagicChest unless you need to remove them from somebody in which case you would negate the permissions.
I have the same issue running pex. Can see help but can't sort.
@ssSkillzzz
Can you please paste or link me to your permissions file so that I can look at it?
I'm using PEX pernissions and I have added the sort commands to my groups. They have access to see the help command but when they use /mgcs on all it says is Your permissions do not allow you to sort chests. ? Am I missing something? I have double checked for typos and I have magicchest.sort, magicchest.sort.chest, magicchest.sort.enderchest, and magicchest.help ???
@CommodoreAlpha
I am glad you asked. At the moment, it only sorts chest based inventories. My problem before was that people wanted ACTUAL player inventory sorting and that just wasn't possible because the client doesn't send the server a player inventory open event or any kind of indication that the player opened his inventory. My recent and fully completed work-around for this is to have the players inventory sorted when the player picks up an item. This feature really becomes useful when a player is mining and constantly picking up items. I've already used it personally on my server and it works great. I hope to release the new feature soon in the upcoming versions after more plugin compatibility has been added. When it comes to telling the difference between inventories, the only thing an inventory can tell you is what kind of inventory it is, not what plugin created it or is interacting with that inventory. Because of this lacking in Bukkit, I've had to personally go around to many authors and request a simple API that lets my plugin ask their's if this inventory that my plugin is trying to manipulate is owned by that specific plugin and if so, cancel the sort process. I hope to have my own API so other authors of the other inventory plugins can simply cancel the sort process in my plugin. I hope this answered all of your questions and if not, feel free to continue. Also, please give me a list of plugins to start working with the authors of them to get MagicChest compatible with. Thanks!
Does this plugin sort any inventory the player interacts with (assuming they have it on), or does it just sort chest-based inventories? Is there a way to distinguish between inventories created by plugins and inventories created by vanilla mechanics (i.e. chests)?
If not, then I might have quite a few plugins to ask compatibility for, but because I have not actually tested for it, I'm not going to request them quite yet. ;)
Hey bro! My server is actually play.pvpcraft.co just to let you know ;) Thanks for mentioning me! I am currently updating everything on it, so it's gonna be whitelisted for a day or two!
@2234twotoo
Thanks! I really appreciate it! I watched it and good good job! I also added it to the description above. ^^
Plugin Review:
http://youtu.be/ONCwBjT0V-I
@Kepler_
Check your PMs again lol.