ToggleInventory

Compatible with CraftBukkit 1.7.9 R0.1 (+1.7.2 R0.3)
April 1st 2014. This project is still alive ;)
About ToggleInventory
This is a plugin for multiple inventory. You can get 4 inventories and easy to switch them. The amount of inventories is configurable using permission. If you use a permissions plugin you can set enable/disable to toggle inventory.

<Tutorial video on YouTube (Thanks VariationVault!)>
<Tutorial video on YouTube (Thanks AbsintoJ!)>
<Tutorial video on YouTube (Thanks UltiByte!)>
Installation
Simply download the JAR file, copy to your Bukkit server's "plugins" directory and reload plugins/restart server.
Configuration and inventory-save-files is automatically generated when needed for each players.
Features
- Multiple inventory (amount of inventories are configurable using permission)
- Special inventory (= like a kit) is available
- Easy to use: Just type "/ti" to toggle inventory.
- ALL ITEMS support include custom items which using NBTTag.
- ALL potion effects support (from 1.3.0)
- Permissions support
Special Inventories
You can toggle special inventories just type /tis.
It's only enabled for operators(op) by default.
Special inventory is a temporary inventory.
You can't save any items you get while using it, so you should pay attention when you toggle special inventory.
If you couldn't use special invs, try below commands.
1. /tis reset-default -f
2. /tis reset -f
3. /tis
Command Reference
| Command | Description | Usage | Permission | Permission Default |
|---|---|---|---|---|
| /ti <number> | toggle inventory | /ti 1 | toggle_inventory.toggle | Operators |
| /ti help | show usage | /ti h | toggle_inventory.toggle | Operators |
| /ti <enable/disable> gamemode | enable/disable toggle with gamemode | /ti e g | toggle_inventory.toggle | Operators |
| /it | toggle inventory (reverse) | /it | toggle_inventory.toggle | Operators |
| /tis <name> | toggle special inventory | /tis /tis foobar | toggle_inventory.toggle_special | Operators |
| /its | toggle special inventory (reverse) | /its | toggle_inventory.toggle_special | Operators |
| /tis copy <name> <number> | copy a special inventory contents to normal inventory | /tis copy foobar 1 | toggle_inventory.toggle_special | Operators |
| /tis add <name> | add current inventory to special inventory | /tis add foobar | toggle_inventory.toggle_special | Operators |
| /tis delete <name> | delete from special inventory | /tis delete foobar | toggle_inventory.toggle_special | Operators |
| /tis reset [-f] | reset special inventory by default | /tis reset -f | toggle_inventory.toggle_special | Operators |
| /tis add-default <name> | add current inventory to default-special-inventory | /tis add-default foobar | toggle_inventory.toggle_special | Operators |
| /tis delete-default <name> | delete from default-special-inventory | /tis delete-default foobar | toggle_inventory.toggle_special | Operators |
| /tis reset-default [-f] | reset default-special-inventory | /tis reset-default -f | toggle_inventory.toggle_special | Operators |
Config: Amount of Inventories
toggle_inventory.[2-30]
These permissions are the player's amount of inventories. If set not, players have only 4 invs.
Example: If a player have the permission "toggle_inventory.2", this means he has only 2 inventories.
Source code (GitHub)
This plugin is an Open Source Software.
Source code can be found on github.com.
If you like this plugin, please give me a star :)
Privacy
This plugin has update-checking, auto-updating, and stats collection(see below section).
You can disable these features in plugins/ToggleInventory/config.yml.
Below example shows disable above features.
[config.yml]
update-check: false auto-update: false disable-mcstats: true
Privacy: stats collection
This plugin uses Hidendra's plugin metrics system (MCStats, http://mcstats.org/). Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.
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
Change Log
v1.3.2
updated for 1.7.5-R0.1, and add disable options for mcstats.
v1.3.1
updated for 1.7.1-R0.1 but no compatibility with older version.
v1.3.0
toggle with potion/gamemode support. compatible with 1.6.4-R2.0
v1.2.2
updated for 1.6.2
v1.2.2
updated for 1.6.2
v1.2.1
updated for 1.6.1
-
View User Profile
-
Send Message
Posted May 4, 2013@yukinoraru
Don't take this the wrong way yukinoraru, I love this plugin but it really shouldn't break every update. I just wrote 90% of the plugin in CommandHelper script because previously, our creative regions were counting on your plugin to switch the player's inventory to an empty one (and avoid players stealing items.)
-
View User Profile
-
Send Message
Posted May 4, 2013@XeonG8 @ke4zzy
Done!
Please wait til bukkit admin approve.
Thank you for using my plugin ;)
-
View User Profile
-
Send Message
Posted May 4, 2013@Kyletheninja1
Please update to latest version of ToggleInventory (latest = v1.2.0).
It'll solve that problem.
-
View User Profile
-
Send Message
Posted May 4, 2013PLEASE need an update 1.5.2 Thank you sooo much. We love the Plugin.
-
View User Profile
-
Send Message
Posted May 3, 2013need a 1.5.2 update I think, internal command errors :)))
-
View User Profile
-
Send Message
Posted May 2, 2013issued server command: /ti 11:53:16 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'ti' in plugin ToggleInventory v1.0.0-PRE at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchCommand(CraftServer.java:523) at net.minecraft.server.v1_5_R3.PlayerConnection.handleCommand(PlayerConnection.java:966) at net.minecraft.server.v1_5_R3.PlayerConnection.chat(PlayerConnection.java:884) at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:841) at net.minecraft.server.v1_5_R3.Packet3Chat.handle(Packet3Chat.java:44) at net.minecraft.server.v1_5_R3.NetworkManager.b(NetworkManager.java:292) at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:110) at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35) at net.minecraft.server.v1_5_R3.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:581) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_4_R1/inventory/CraftItemStack at com.github.yukinoraru.ToggleInventory.InventoryManager.saveInventory(InventoryManager.java:330) at com.github.yukinoraru.ToggleInventory.InventoryManager.saveInventory(InventoryManager.java:347) at com.github.yukinoraru.ToggleInventory.InventoryManager.toggleInventory(InventoryManager.java:185) at com.github.yukinoraru.ToggleInventory.InventoryManager.toggleInventory(InventoryManager.java:323) at com.github.yukinoraru.ToggleInventory.ToggleInventory.onCommand(ToggleInventory.java:86) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 15 more Caused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.v1_4_R1.inventory.CraftItemStack at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:70) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 21 more
-
View User Profile
-
Send Message
Posted Apr 9, 2013@TutorialsTL
Sorry for late.
Please give me the error detail via pastebin.com and I can give you some advice.
And if you can correct my English, it will help me a lot!
A nice guy sent a pull request for correct my error message in plugin in days past.
-
View User Profile
-
Send Message
Posted Apr 9, 2013@VergilPrime
Well...
You wish a command like '/tis set-default [user] [special_inventory_name]' to set default special inventory, right?
-
View User Profile
-
Send Message
Posted Apr 7, 2013Mind adding a command to change another players inventory to a default special inventory from console?
-
View User Profile
-
Send Message
Posted Mar 29, 2013Well cool plugin but when i type "/ti" Server just disconects me for : Internal Server Error. P.S I can correct your English if you want.
-
View User Profile
-
Send Message
Posted Mar 22, 2013I'd second request for Multiverse inventory support...
though for the time being I have separated the perms so that ti only works in the worlds that I am allowing ti to be used.. as he is right players can use ti to move items between worlds that should otherwise only have separated inventories.
-
View User Profile
-
Send Message
Posted Mar 21, 2013@thomasmccarron
Sorry my plugin doesn't support multiverse.
And Im not gonna implement it at present.
If there were many requests for that a feature, I'll implement it.
-
View User Profile
-
Send Message
Posted Mar 21, 2013@cvo1010
It's nice idea ;)
I've added it as a planned feature.
-
View User Profile
-
Send Message
Posted Mar 21, 2013@StarlessMiner
Got it. I uploaded a new version(1.1.2) for 1.5.1.
Please wait til bukkit admin approve.
-
View User Profile
-
Send Message
Posted Mar 21, 2013the 1.5 version did not work for cb 1.5.1 ;O
[44m[37m[44m[37morg.bukkit.command.CommandException: Unhandled exception executing command 'ti' in plugin ToggleInventory v1.1.1 [44m[37m[44m[37mCaused by: java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_5_R1/inventory/CraftItemStack [44m[37m[44m[37mCaused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.v1_5_R1.inventory.CraftItemStack
-
View User Profile
-
Send Message
Posted Mar 18, 2013Works great thanks
-
View User Profile
-
Send Message
Posted Mar 18, 2013You know how you can invsee players invemtories, how would this work with this plugin. If this feature isn't implemented It would be great if you did implement it :D
-
View User Profile
-
Send Message
Posted Mar 18, 2013Heya there :)
This looks like a great plugin, however I have one question. Does it support multiverse inventories? I wouldn't like for there to be an exploit where players can use this plugin to move items from one world to another where inventories aren't shared.
Regards,
Thomas.
-
View User Profile
-
Send Message
Posted Mar 17, 2013Running latest Craft Bukkit 1.5 and getting Internal Error
-
View User Profile
-
Send Message
Posted Mar 17, 2013@XeonG8
Got it. I upload new version(1.1.1).
Please wait til bukkit admin approve.