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
@Ta6akus5
Probably my plugin can not be the reason for such behavior.
Please try the latest version Mr. Sorry for late.
@PEZA0
Here you are.
ToggleInventory - 0.0.9 for 1.4.6-R0.3
http://dev.bukkit.org/media/files/661/660/ToggleInventory.jar
ToggleInventory - 0.0.9 for 1.4.5-R1.0
http://dev.bukkit.org/media/files/661/662/ToggleInventory.jar
# Sorry for late. Admin of bukkit don't approve, so you can't see the download link :(
# And thanks giving me a star!!
Can u send a download link, from new version?
I'm really sorry everyone.
I've just updated so the new version can be downloaded in less than a day.
The biggest reason for the delay is because I was not able to respond to major changes in Bukkit 1.4.5-R1.0.
I thought this update was a good opportunity for major upgrade and I started writing a new version from a scratch, but I got stuck, I have suspended development.
But there is a very kind man had bug fixes.
Thanks so much, blha303!
10 days is as soon as possible?
@VergilPrime
I do :) and I dont release my shit, but same as iprocombine I get errors, the code in this is kinda sloppy...
I tried to use the source and update this but it has so many errors so I don't know. If you could update the plugin for all of us that would be greatly appreciated. Thanks!
@yukinoraru
Hello dev. You can post the update ? Thanks.
@GameAnarchy
Really? Your not going to thank him for making the plugin in the first place?
Maybe you should learn to make your own plugins then.
@VergilPrime
I will thank him once its updated.
@GameAnarchy
You forgot to say PLEASE and THANK YOU :I
can we get a update on this My donators are driving me up the wall for this.
Merry Christmas! Thanks for all the hard work, hope your AMAZING plugin is updated soon!
@Ta6akus4
Needs to be updated for 1.4.6. Pls.
@HuberSepp123
@Ta6akus4
!? 1.4.5 or 1.4.6 update is the largest change in this year.
I'm going to update as soon as possible.
Thanks for telling me.
Please update it!
@PEZA0 @iProCombine
When a player dies, he drop only all items in current inventory.
And there is no configuration when players die.
I'll implement admin-command and configuration for drop in the near future, sorry.
What happens when a player dies? Does the current inventory drop or all of that players inventories?
Add admin in-game command to set the amount of inv to each player. And not only by editing the config.yml Like /tbadmin add <name> <number_of_inv) and /tbadmin remove <name> and /tbadmin info <name> its last one show the info(duhhh)
@Etsija
Hmm...
It sounds strange.
My plugin doesn't touch chests at all.
In other words, my plugin doesn't use chest-related API in bukkit.
Thus I think my plugin could not be the reason for the strange phenomenon.
In addition I used InvTweaks and ToggleInventory together, there were no malfunction.
However it's impossible to say my plugin and your problems is unrelated completely because my plugin may have a bug causes item lost.
Anyway I should take some notice of your case, thank you for your detailed reporting.
And I fixed a bug in saveInventory method from version 0.0.8.
My test was not enough. :-(
Just to note: in our test usage, pretty soon after this plugin was taken into use, one of our players lost 9 chests full of items. LogBlock shows the player would have taken all stuff in those nine chests within a couple of minutes, which is not physically possible, so I know the player isn't lying to me - the stuff in his chests really did disappear magically.
Is there any possibility at all that ToggleInventory could be the reason for this? It was not even enabled for this particular player (ie. he only had the one inventory the vanilla Minecraft gives him), so the player in question did not have any ToggleInventory-related files created in its folder.
I guess the player in question also uses the client mod InvTweaks, and to me, it seems that one is far more probable cause for this.
- - -
Anyway: one bug to report. Whenever a person starts to use ToggleInventory the first time by typing /ti, the plugin gives an error message "Something went wrong when saving inventory", and this Java error:
so there's an error in your saveInventory() method.