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
Just like techchris427 said, it would be more useful if I, as admin, can set which "inventory" you can use per world. I'm using Multiverse for world configuration, so, is there a way you can let your plugin work together with multiverse for setting an inventory per world?
(if so, you'll absolutely get that star! ;) )
You should make it so there is a way to toggle another player's inventory via the console.
This is a very good idea! Nice job! :)
Hey Guy U Can Create This Plugin, But Needing Money Or Level For Buy and switch inventory?
THX
@yukinoraru
You're welcome. I like communicative and active developers c:
Btw: I could help you with Documentation if you still need.
@Niknox
@ke4zzy
Guys, Updated for 1.6.2. (http://dev.bukkit.org/media/files/718/99/ToggleInventory.jar)
You are the my motivation. You stimulate me to update this plugin :) Thx.
@Niknox
It may be lost now. Not sure if they know its been updated and 1.6.1 wont work. oh well. :(
Thank you sooo much, our server got to enjoy this about 1 day lol before they released 1.6.2 Oh well. I'll have patience and wait till you get there too. Thanks for your hard work. We will be waiting for 1.6.2 we cant use it right now btw we too love using it since versions ago on our server at ProStarPlanet.com
@yukinoraru
Thank you very much for updating it!
I already thought that this plugin is lost because you were offline for over 1 month. That would be very sad because that plugin is great and irreplaceable!
@Niknox
@ke4zzy
@ke4zzy
@Kyletheninja1
Updated. Please wait til bukkit admin approve. (If you can't please download from here: http://dev.bukkit.org/media/files/716/145/ToggleInventory.jar)
Indeed, it breaks with 1.6
The error message in game is: "an internal error occurred while attempting to perform this command"
While the console output is:
Make it so you dont have to download this every version..... Its fucking annoying my donators want this and i keep getting issued server command: /ti 12:52:10 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'ti' in plugin ToggleInventory v1.1.2 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:971) at net.minecraft.server.v1_5_R3.PlayerConnection.chat(PlayerConnection.java:889) at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:846) 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:115) 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_5_R2/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:89) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 15 more Caused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.v1_5_R2.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
Can you add a permission that sets a maximum inventories that a player can have?
Like: toggle_inventory.toggle.3 , will make a player have a maximum of 3 inventories? And toggle_inventory.toggle.* for unlimited (or maximum, which is 5 inventories I beleive)
@Kyletheninja1
Now you can download v1.2.0!
@MCGamer20000
thanks!!
This is a great idea!
I Can Only Download 1.1.0.....
@VergilPrime
I can relate to what you are saying.
But bukkit forces me to update cause of Safeguard Versioning Policy (http://forums.bukkit.org/threads/safeguard-versioning-policy.123435/).
It's very annoying. I can't understand why I have to change my code on every update. xo
To solve this problem I should use auto-build tool like Jenkins but I'm not familiar with that so I have to learn about Jenkins first.
Thanks for update..
@kyle http://dev.bukkit.org/server-mods/toggleinventory/files/23-1-2-0/
Were Do i Download V1.2.0.... Link please.