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
@Etsija
Thanks Etsija!
Testing is good. There is an unknown bug that causes item lost. But I think its bug may be fixed from 0.0.6.
I just merged your pull request and upload .jar which was applied your correction. (After approval, I'll remove old 0.0.7)
I am a new user of this plugin - we have taken it into "limited test use" on our server, to see whether it performs as expected, doesn't lose any valuable items etc.
Since you asked for help in correcting the typos in your plugin, I forked your code into my GitHub account and made a pull request for you.
@xJoshJx
@Ta6akus4
@VergilPrime
Thanks for reporting the issue, guys. I'll work for the problems.
Would you please report bugs if you found?
@VergilPrime
Indeed
"This plugin needs to be updated for 1.4
Colored leather armor does not keep color
Named items do not keep names."
This plugin needs to be updated for 1.4
Colored leather armor does not keep color
Named items do not keep names.
can i save my inventory ?
so i make the inventory that i wants as "1" and save...then makes what i want in 2 and save ?
or how do i make what i want in 1, 2, 3, 4, ?
http://pastebin.com/hyiAdxxM
@VergilPrime
I can't open the link. It's redirect to http://hastebin.com/
Can you upload error text on http://pastebin.com/ ? Thanks.
Error! http://hastebin.com/yecufeguga.coffee
@Ferkswe
Named inventory is good idea!
But it costs too much to implement it.
So I can't promise to implement the feature, but I'll try!
Thanks for your comment and thx for using my plugin.
Hey, This is an awesome plugin, but just a few things that would make it even better (at least I think so)
So, instead of having four preset inventories named 1-4, users could create new inventories by doing /inv new Name. The more you do it, more more inventories you will get up to a maximum set by permission nodes. Then, when you do /ti it will move to the next inventory, and if you do /inv Name it will move to that specific inventory.
If that could be done you would make me one very happy server admin.
Thanks! FerkSwe
@VergilPrime
I'll check it. What's version do you use? When inventory duped? Type /ti or /ti [n] ?
Still getting occasional inventory wipes and in one case, inventory 2 duped into inventory 1.
Ill see if I cant find any errors.
@TanveerGT5
You're right. I really need help to correct my English. It would be a great help if someone correct my English.
Thanks.
@VergilPrime
Got it. I'll fix it. Next version will be able to deal with over-enchantments items.
Seems to want to erase inventories with over-enchants. Seeing as my server sells them, I would appreciate this particular issue fixed :D
http://pastebin.com/4rfEG8BM
@Ta6akus3
OK. Source code is found on github.
I hope my code is useful for you ;)
@Ta6akus3
Got it. Thank you for your report. I'll fix it on version 0.0.4.
@NineDiamonds
Thank you for using my plugin, and thank you for your nice idea.
v0.0.3 implements your idea, enjoy! ;)
If you found a bug, please tell me.