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.
http://dev.bukkit.org/bukkit-plugins/tardis/
http://dev.bukkit.org/bukkit-plugins/easytrading/
Also, how do I make it where regular players can toggle it on and off? My OP can toggle it, but even though my player account has perms (default players have the perms) it says I don't have permission to perform the command.Okay, read about the "magicchest.sort" option for turning on and off, but I have an issue: It says "your permissions do not allow you to sort chests". I have it set to ignore everything BUT chests...so what's the issue?When I run this in the config:
No players are getting there inventories auto sorted except for OPs and they can do /magicchest. :(
@uvbeenzaned
Glad to see a release for Spigot!
New release available! Caution, bugs are present! Read the release notes please! This release is for the new 1.8 Spigot build!
Release Here
@verservarlin
Thanks for showing me the thread. I've been keeping up with Spigot but I didn't see that yet. I will be updating MagicChest to 1.8 soon. Not sure how long it will be released here though. I will keep everyone up to date though.
http://www.spigotmc.org/threads/bukkit-craftbukkit-spigot-1-8.36598/
@rautamiekka
Sorry about that. The author must have removed it.
Dead video link.
@PixalNinja
Thanks for taking care of that for me. I guess I didn't catch that is was a Java problem.
@SDDJ
Nope, I took care of that as soon as I heard that the IDs wouldn't be around for long. It has sorted by item name since v1.2.0 :)
This will probably be incompatible with 1.8 since it will not have item IDs, huh?
@Bellthane
@Bellthane
You don't have Java 7. Install the JRE java and JDK and that error should not come up.
version 51.0 is a Java version (although version 55 came out recently)
@Bellthane
I have a feeling that this is a server or plugin conflict problem. Try setting up magicchest on a test server and running it by itself and rule out other issues that may be a plugin or a bad bukkit build.
Hi,
I have a problem with Bukkit-1.7.2-R0. Same for brand new 1.7.8, but Bukkit-1.7.2-R0 is sufficient.
When I start up the server it tells me:
[12:23:32 INFO]: This server is running CraftBukkit version git-Bukkit-1.7.2-R0 3-b3020jnks (MC: 1.7.2) (Implementing API version 1.7.2-R0.3) [12:23:32 ERROR]: Could not load 'plugins\MagicChest.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionErro : org/zonedabone/magicchest/MagicChest : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader. ava:137) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager java:313) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManage .java:236) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.j va:350) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.<init>(CraftServer.java:3 2) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.PlayerList.<init>(PlayerList.java:63) [ raftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.DedicatedPlayerList.<init>(SourceFile:1 ) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.ja a:126) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.jav :424) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile: 17) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] Caused by: java.lang.UnsupportedClassVersionError: org/zonedabone/magicchest/Ma icChest : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) [?:1.6.0_26] at java.lang.ClassLoader.defineClassCond(Unknown Source) [?:1.6.0_26] at java.lang.ClassLoader.defineClass(Unknown Source) [?:1.6.0_26] at java.security.SecureClassLoader.defineClass(Unknown Source) [?:1.6. _26] at java.net.URLClassLoader.defineClass(Unknown Source) [?:1.6.0_26] at java.net.URLClassLoader.access$000(Unknown Source) [?:1.6.0_26] at java.net.URLClassLoader$1.run(Unknown Source) [?:1.6.0_26] at java.security.AccessController.doPrivileged(Native Method) [?:1.6.0 26] at java.net.URLClassLoader.findClass(Unknown Source) [?:1.6.0_26] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader java:77) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader java:62) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.6.0_26] at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.6.0_26] at java.lang.Class.forName0(Native Method) [?:1.6.0_26] at java.lang.Class.forName(Unknown Source) [?:1.6.0_26] at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.ja a:40) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader. ava:133) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] ... 9 more
@jhicks32917
I'm sorry, but did you download v1.2.4? I tested the compat personally and everything seemed fine. Did I miss something? Possibly link me to some screenshots? Can you tell me how to reproduce the problem?
Hi,
Thanks for taking the time to add compatibility with SkillAPI! However, it seems we're not at 100% compatibility as the Skills menu is still being sorted by MGCS, making it impossible to add skill points.
@uvbeenzaned
Thanks a lot. <3
@DerekZil
Yes, I will consider a toggle command such as /sort in the upcoming builds.
Can you make the command '/sort'? It will help a lot of players getting confused.
Best plugin ever just do /mgcs on and all your chest are organized easy and good