WorldInventories
WorldInventories
Discontinued
As of 11/05/2013 I'm no longer working on this project. I haven't played vanilla/Bukkit in a very long time, updates are becoming tedious and break often requiring rewrites, and I'm not enjoying development any more. The last uploaded version for 1.5.1 works fine (aside from the importing), and there's a chance it will also work across updates, but moving to another plugin, such as MultiInv, is highly recommended - you should also be able to import settings in to it.
Description
Switch any of the following player information when teleporting between groups of worlds:
- Inventory,
- Armour,
- Ender Chest contents,
- Potion effects,
- Health,
- Hunger,
- Experience,
- Game mode.
Player information is separated in to small YAML files (that you can edit) based on groups. Designed to be fast, simple and easy to use.
Want to keep existing player information? Use the vanilla import option as outlined in the configuration example. Players will get a blank inventory by default if you don't import data first!
Need to chat, notify me of a bug, suggest a feature or try and get some help? Go to the IRC channel! (information down in Links)
How to use
Simply put WorldInventories in the Bukkit plugins folder, run it once, edit the config file it creates. An example is included below (with an explanation of each configuration option).
Any worlds not included in groups share a "default" group.
Changes in 1.7.0
Importing support for files previous to v5 has been dropped. This was necessary to clean the project up (just look at the GitHub page if you want proof!) and make it easier to maintain. If you need to import previous to this, use 1.6 as a go-between. Vanilla importing still works fine.
Other changes and additions:
- Added message hiding granularity (hide specific message types, on login for example),
- Added language support,
- Massive code cleanup,
- Event priorities changed a bit, should improve compatibility with other mods,
- Built against 1.5.1,
- Added API - tell me if you would like something added to it!
A note about the dev builds: All importing is currently broken. I'm fixing vanilla importing, it will involve using the OpenInv plugin to load offline player inventories. OpenInv is optional and only required when doing the vanilla import.
Language support
As of 1.7.0 a new file, langs.yml, will be created on the first plugin run. A new configuration option, "language: en_GB" will also be generated.
To add a new language:
- Run the new version once, it'll generate lang.yml in the same place as config.yml, and add "language: en_GB" to the config as a default,
- Open lang.yml, copy one of the sections and call it something (preferably the country code),
- Set "language" to whatever you called it, save,
- Either do "/wireload language" or restart the server, check the console to see if there were any errors when trying to load your new language.
If you add a different language please let me know, I can add it to the defaults!
Why no SQL support?
For a plugin like this, it isn't necessary. Files are very, very small (you'd probably hit 10kb for a player with a completely full inventory), load extremely quickly and are fast to copy and backup as they are.
If you disagree with me, provide a performance report to me on IRC (there are lots of plugins to profile performance) and I'll think about it again.
Configuration example (with explanations)
Version 1.7.0
# A "group" is a collection of worlds which will share an inventory. # In this example there are two groups, a creative and a survival group # Each group has an overworld and a nether, which will share an inventory # Inventory switching examples # Scenarios when the inventory will not switch: # creative_overworld to creative_nether # survival_nether to survival_overworld # survival_end to survival_overworld # Scenarios when the inventory will switch: # creative_overworld to survival_end # survival_nether to creative_nether groups: creativegroup: - creative_overworld - creative_nether survivalgroup: - survival_overworld - survival_nether - survival_end # Add a player to the "exempt" collection to make this plugin ignore them completely # No saves, loads or anything else done by this plugin will apply to them until you remove them from the list exempt: - exampleplayer - exampleplayer2 # This is deprecated as of 1.7.0 - use message-hidden at the bottom instead! # donotifications: true # Set this to true to make WorldInventories attempt to import MultiInv data # Automatically sets itself to false when an attempt is made domiimport: false # Set "miimportmode" to the integer identifier of the mode WI should import from (eg, 0 for MI survival) miimportmode: 0 # Set to true to make hearts, food level, experience and such track with inventory dostats: true # If a save interval is specified below, set this to false to stop it from outputting to the console outputtimertoconsole: true # Set to anything above 30 to make inventories/stats save automatically every x seconds saveinterval: 0 # Set "do78import" to true to force a conversion of the pre build 78 files for use in newer versions # Automatically resets itself to false on an attempt do78import: false # Set "do141import" to true to force a conversion of the pre version 1.4.1 files for use in newer versions # Automatically resets itself to false on an attempt do141import: false # Set "dovanillaimport" to true to attempt an import of the items and stats stored in players player.dat file # Set "vanillatogroup" to the group you want to import to. If blank it will use the default group. dovanillaimport: false # When this plugin loads it will automatically try to convert pre build 78 files and add "auto78updated: true" to this file if successful # When this plugin loads it will automatically try to convert pre version 1.4.1 files and add "auto141updated: true" to this file if successful # Set "dogamemodeswitch" to true and add groups to gamemodes as per the example to enforce gamemodes # SURVIVAL, CREATIVE or HARDCORE at the time of writing (follows Bukkit's names) gamemodes: default: SURVIVAL creativegroup: CREATIVE survivalgroup: SURVIVAL dogamemodeswitch: false # Below are 1.7.0 and above # Set language to something stored in lang.yml language: en_GB # To hide a particular message type, set any of these to true message-hidden: died-message: false changed-message: false nochange-message: false loaded-message: false
Commands & Permissions
There are two commands as of 1.5.7:
- /wireload: Reloads the configuration,
- /wiexempt [add/remove] [player]: Add or remove the player from the exemptions list (whether the plugin does anything to their information specifically, e.g. when they switch a world).
In 1.7.0 the reload command changed slightly:
- /wireload [all/language]: Reloads the entire configuration or just the language.
There are also two permissions:
- worldinventories.reload: Allows the use of the /wireload command,
- worldinventories.exempt: Allows the use of the /wiexempt command.
Licenses
This work is distributed under the BSD 2-Clause license. Read the license
This plugin also uses XStream. Read the XStream license
Links / Download
Bukkit require me to include this notice when linking Jenkins builds, like the one below.
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
Source code
Available in the BukkitDev downloads!
No beta builds.
Issues / known bugs
IRC - EsperNet #worldinventories
Donate
Use IRC for new build notifications, telling me about issues and getting faster help!
(Only shows stats for version 1.4.1 and above)

-
View User Profile
-
Send Message
Posted May 12, 2012@Giuseppe1990
java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener
If you see that in an error, it means the plugin has not been updated for minecraft 1.2
-
View User Profile
-
Send Message
Posted May 9, 2012-
View User Profile
-
Send Message
Posted Apr 21, 2012@Drayshak Found a real bug though other then that it's working fine. When you have a splash potion of anything in your inventory. Then go to a other world with a other inventory set. Then when you go back the potion is still there. But it change from splash to a not splash potion. Hope you can look into this. Other then that it's working great! Thanks for this great plugin again keep it up.
-
View User Profile
-
Send Message
Posted Apr 14, 20121.2 working fine, make it the recommended version cuz the other ones dont share exp and this one work perfect with My Worlds
-
View User Profile
-
Send Message
Posted Apr 13, 2012I need this updated just so I can run it to import into Multiverse-inventories.
-
View User Profile
-
Send Message
Posted Apr 13, 2012Please update! also i have had players tell me that they wished the exp would be separate for worlds. can you add this?
-
View User Profile
-
Send Message
Posted Apr 13, 2012@CarrotCodes
please dont let this plugin die can u update it to 1.2.5 please
-
View User Profile
-
Send Message
Posted Apr 9, 2012Are you still going to be working on Multiverse-Inventories? I can't seem to find that notice now.
-
View User Profile
-
Send Message
Posted Apr 2, 2012You have two worlds with separate inventories. Let's call them warworld and peaceworld.
A player is in war world, but offline. If i remove warworld (/mv remove, i use multiverse 2), when the player next logs in, he is automatically brought to the peaceful world. However, he retains his items form the war world and his peaceworld inventory is destroyed.
Is this intentional functionality? I would think on a player login it would check to see which world he is in, and apply the correct inventory set.
-
View User Profile
-
Send Message
Posted Apr 1, 2012Please keep the development of this going. I like myworlds.
-
View User Profile
-
Send Message
Posted Mar 31, 2012I'm experiencing strange random bugs that don't have any errors to show..
Basically, randomly and very unpredictably, although common enough to be a serious repeat problem for my users. Players occasionally lose their ENTIRE inventory when going from our creative map to our survival map, which are separate inventories. It doesn't happen all the time, maybe 80-90% of the time everything works fine.. But every other day or so, someone is yelling at me because their whole survival inventory has vanished into thin air. =/
Also sometimes even when they use /sethome and later /home, they also lose inventory, which could be related. (But I'm assuming that's an unrelated bug with CommandBook, not this.)
-
View User Profile
-
Send Message
Posted Mar 30, 2012I use essentials /ci command to clear a players inventory in world (its an event world so the clearinventory command is used regularly) and players complain that their inventory in the main world also get cleared occasionally
-
View User Profile
-
Send Message
Posted Mar 30, 2012Sir I have a MAJOR problem with this plugin. When some of my players logout they lose their inventory.... I have 6 worlds including the nether. They are Main2, Main2_nether, Creative2, NewFactions, NewFactions_nether, and NewSurvival. I am using the recommended build of bukkit (1.2.4-R1.0). I also use multiverse to manage my worlds. My spawn world is Main2.
Here is my config:
http://pastie.org/3699714
Please Help me. :)
-
View User Profile
-
Send Message
Posted Mar 30, 2012Hey bro, I have a problem where splash potions lose the splash effect whenever I go to another world and back. Could this be a bug in WorldInventories? Has anyone else experienced it? I don't really mind because I put up warning signs around all my inter-world portals but I'd still like to know what's causing this. Thanks! :)
-
View User Profile
-
Send Message
Posted Mar 29, 2012hi i have a question :)
can i do this?
The thing is i generate new Worlds in my Plugin and Before i Implement a new Inventory System i will look for other Plugins who do this allright.
-
View User Profile
-
Send Message
Posted Mar 28, 2012@blokzeil1
I can't help if I don't know what the bugs are :D
Often other plugins are to blame for the issues (not to try and absolve me of all blame) - what other plugins are you running it with (if any)?
-
View User Profile
-
Send Message
Posted Mar 24, 2012Ok this plugin is having same problem as multiverse-inventories.. When you make your gear lose durability and move to another world and break a single item, the durability of item will reset and it will be 100% fixed. This is severe issue.
-
View User Profile
-
Send Message
Posted Mar 24, 2012I love this plugin, Its the heart of my server.. But please can you upgrade it? It works fine but some little strange bugs..
-
View User Profile
-
Send Message
Posted Mar 23, 2012For anyone that is interested!!
DO NOT USE MULTIVERSE-INVENTORIES, at least for now.
It has epix durability bug, where you can fix anything by just moving to another world and hitting the ground with tool.. This plugin is much better! :)
-
View User Profile
-
Send Message
Posted Mar 22, 2012I am not thrilled that you are going over to Multiverse-Inventories.
I would be if they wouldn't force the use of Multiverse-Core to use the Inventory extension.
So if I want to use Multiverse-Inventories I have to get the Core plugin which would be useless to me since I use My Worlds and then i would have just an extra plugin eating memory.
I still hope that you will keep developing WorldInventories because I don't trust MultiInv and it is quite hard to configure and understand.
Keep up the good work :D