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.
Is this plugin broke with 1.5.2? It just says it's an unknown command :(
Hi, How can I do if I dont want my players use the command? I want that everybody who has the permission could have their chest sorted automatically... Thanks
NOTICE: Changed all permissions in v1.1.2 to default to not allow usage unless you are an op! Please update your permissions file with - magicchest.sort if you wish for players to be able to use this plugin again!
@Rog360
At the moment, the way the code works, there is no way that it could conflict with any other plugin. I'm not all that sure that it is magic chest.
I don't think it is sorting them as it has a piece of paper in the chest which sorts them when clicked in Globalbank. Maybe that's where the problem lies... :)
@Rog360
Ok more than likely it isn't magic chest causing the drop problems but may I ask if magic chest is sorting global banks chests when you don't want it to? Just curious.
Yes, I still got errors after removing MagicChest. But, it fixed Globalbank from dropping vault chests. Now I'm testing with herobrine plug removed. To see if errors stop. So I'm thinking the 3 are conflicting. [herobrine, MagicChest & Globalbank]
I can run MagicChest & Herobrine fine no errors. So Far, I can run Globalbank alone with no errors... :)
@Rog360
There is one problem with the error log posted there. There is no error about magic chest found anywhere in that log. We're there any errors after you removed magic chest from the server? Or did you?
That may stop it from picking up and dropping the vault chests. You can find the ticket at url below.
http://dev.bukkit.org/server-mods/globalbank/tickets/20-picking-up-dropping-vault-chests/#comments
If you need any more info. I'll be here... :)
@Rog360
When you say make it work, do you mean make it not sort GlobalBank's inventories?
Can you please update this and make it work with the new GlobalBank?
http://dev.bukkit.org/server-mods/globalbank
Thanks for your work... :)
@ZwingGX
I see what the problem is. I will look into that plugins features to see what I can do to fix it.
@uvbeenzaned
sort bug in shopkeepers plugin(http://dev.bukkit.org/server-mods/shopkeepers/) :d..
https://dl.dropbox.com/u/78671707/shopkeeperwithmagicchest.JPG
@xDowsey
Permissions are backwards on this plugin until I fix them. Change: - -magicchest.sort To: - magicchest.sort
@uvbeenzaned
http://pastebin.com/QDb84Vmt
@xDowsey
Paste or link your permissions file here please so I can help you. Thanks.
@uvbeenzaned
I don't want everyone to be able to use it, just the donator rank.
That error occurs when type any command starting with /mgcs
@xDowsey
What command are you running? Perms default to true, if you want everybody to use it, don't add any perms to the perms file.
@uvbeenzaned
I installed it, setup the perms, etc.
However, when I try to use the command, I get this error message, despite having OP:
None of my members can use it either?
Any idea's why?
The only message I'm getting in the console is:
@xDowsey
Yes, at the moment it works fine in 1.5.1. I don't think the API has taken drastic enough changes to cause any problems yet. If anything starts going wrong, just let me know here.