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.
@uvbeenzaned
Here's your reminder to look into making this compatible with CustomGUI :)
@robotnikthingy
Will look into it this weekend. Send me a reminder just so I don't forget. I have other projects going on as well.
Hi, can you make you plugin compatible with CustomGUI? Right now the plugin screws with the GUI
https://www.spigotmc.org/resources/customgui-completely-customizable.7386/
@ServerMiner
Wow thanks! I am so happy that people love this plugin. I am going to releasing a few compatibility updates over the rest of the year as well so for your hosting purposes be looking for more updates. I will add your video to the main description and credit you guys! Also, can I put an ad up for your hosting site here? Do you have a banner that I can use?
I will check out the video myself this afternoon!
We love your plugin so we decided to create a video to showcase its features!
We created a YouTube video tutorial for you, feel free to use it on your plugin info area: https://www.youtube.com/watch?v=wlY_G2PgMaQ
error
@Kepler_
Alright, will do.
@uvbeenzaned
I think your plugin's looking for the FastCraftAPI here:
co.kepler.fastcraftplus.api.gui.FastCraftAPI
In older versions of FastCraft+ the API was in the api.gui package, but I meant for it to be in the api package. Try building off the most recent FastCraft+ jar, and using the class in the api package:
co.kepler.fastcraftplus.api.FastCraftAPI
@xxOrpheus
I will look at this with the another plugin author to get you straightened out since it seems related to another plugin.
@Kepler_ can I get some help on this? Seems like maybe the user has an old version of your plugin maybe? Look at paste bin link.
This happens when I open a chest :( It only happens when I have FastCraftPlus enabled
http://pastebin.com/PtYirikF
@uvbeenzaned
The only gui I have now is the FastCraft gui, but I added the other method in case I add other guis in the future.
@Kepler_
I think I am using your other method. I did not know that the isFastCraftGui was not returning true all the time... I'll see what I can do to get a new build out this afternoon.
@uvbeenzaned
Your last release says you resolved the issue. What did you have to do to fix the problem?
Also, I recently added the API method isGUI(). I may add more GUI's in the future, and isFastCraftGUI would return false for those, so make sure you're using isGUI().
@Kepler_
That's okay, if they are still having the problem, we'll put our heads together and see what we can come up with. I have an API as well.
You can listen to MagicChest for when a sort is about to happen.
Event Here
Docs Here
@uvbeenzaned
I forgot about that... I just had someone message me about an incompatibility with Magic Chest. I'll make sure he's using the most recent version of our plugins, and do some investigative myself.
@Kepler_
I'm confused? I talked to you last month about adding this right? That is what the last release contained...
See here
Could you add FastCraft+ compatibility? You can use the FastCraft+ API similarly to the FastCraft API.
You can find the plugin here: https://www.spigotmc.org/resources/fastcraft.20544/
And you can use this API method to see if an inventory is a GUI: https://github.com/BenWoodworth/FastCraftPlus/blob/master/src/main/java/co/kepler/fastcraftplus/api/FastCraftAPI.java#L19
HELLO ALL! Great news! There has been an update to fix dual wielding issues! Please download and enjoy!
@Xuwznln
Yes I will look into that. I plan on doing a big update for all you guys soon. I have been busy with work and other things. I have not forgotten this plugin. I need to read up on the new APIs for Bukkit in the recent updates.
Can you add compatibility for BigChests? Here is the BigChests