MultiInv
What is MultiInv
MultiInv is a plugin that gives players a separate inventory for every different world running on the server. You can share inventories over chosen worlds and some players can be ignored entirely. With this power it is possible to have multiple worlds running on one server, but keeping them totally segregated from one another.
MultiInv can also separate health over certain worlds allowing for total separations of a world on a server.
If MultiInv refuses to work and you can't change inventories, it's because you have the wrong version of the TuxTwoLib or forgot to deny yourself the permission multiinv.exempt!
Update for UUIDs and 1.7.9 (there will be no support for 1.7.8 or below due to game breaking bugs) are here! Download will be available as soon as Bukkit Dev approves it.
MultiInv and MobArena are currently not compatible! Make sure users can only join a mob arena from the same world group!
Starting with MultiInv 3.2.1 we now require the library TuxTwoLib to maintain compatibility across various minecraft versions
Video Tutorial
Features
- Separate world inventories
- Create groups of worlds where the inventory is shared between them
- Separates XP, food, health, potion effects, and EnderChest inventory per world/group of worlds.
- Option to ignore certain players completely (permissions based)
- Can import Multiverse-Inventories/WorldInventories saved inventories.
- Option to use mySQL instead of flat files.
Forums/Problems
The forums for this plugin (at the top of the page) are the best place to go if you have any questions that aren't just general comments (such as "I hat you" or "I love you"). There I can see which problems have been replied too and who still needs help.
Using MultiInv with BungeeCord
Since BungeeCord requires servers to be in offline mode it's sometimes hard to acquire a reliable UUID if Spigot/BungeeCord isn't configured correctly. Here are the settings you will need to change:
In the BungeeCord config.yml make sure ip_forward is set to true
On the server in the spigot.yml make sure bungeecord is set to true
By setting these two options BungeeCord will be able to pass the correct UUID to the servers. Please note that if you are sharing inventories across multiple servers that this feature is still in beta and may not always work.
Commands
- /multiinv reload - Reloads config files.
- /multiinv import - Imports flat files into a mysql database.
- /multiinv mvimport - Imports Multiverse-Inventories into MultiInv, with the database that you have selected. (You will need to have the Multiverse-Inventories plugin installed when doing the import, just make sure to remove it afterwards)
- /multiinv miimport - Imports WorldInventories into MultiInv.
- /multiinv mcimport - Import Minecraft player files into MultiInv. (Only useful when you've got existing player data and you are enabling the SaveInventoryOnQuit option)
- /multiinv mcexport - Exports MultiInv player data for the default world into the default world in Minecraft format.
Permissions
- multiinv.reload - Permission to use the reload command
- multiinv.import - Permission to use the import command
- multiinv.mvimport - Permission to use the mvimport command
- multiinv.mcimport - Permission to use the mcimport command
- multiinv.mcexport - Permission to use the mcexport command
- multiinv.exempt - Exempts player from inventory switch (If your inventory is not changing, deny yourself this permission in your permissions manager!!!!)
Configuration
^That's a link up there
Updating from MultiInv 2.x to 3.x
- Delete your old config.yml file in the plugins/MultiInv directory
- Start the server with the new plugin
- Rename the Worlds folder to Groups under the plugins/MultiInv directory.
- Rename shares.yml to groups.yml
- Cut the creativeGroups section out of groups.yml and paste it at the end of config.yml
- Edit the config.yml to your prefrences
- do: /multiinv reload
- If you are moving to the mysql database do: /multiinv import
- You're done, enjoy!
Links
When, Where, and How are the Inventories Saved?
Old forum page (Includes old version links)
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.
Jenkins Dev Builds
Source Code
Please note, that while I (Tux2) am maintaining this plugin you must file bug reports under the tickets section. If you're having a problem, try replicating it in the latest version of MultiInv as it could already be fixed! Also, if you want your problem to be addressed please make sure to include the MultiInv version, the TuxTwoLib version, your config.yml and groups.yml files contents as well, (even if it is a comment asking for help) If you do not follow these guidelines your comment may be deleted without warning!

Stats provided by Plugin Metrics
-
View User Profile
-
Send Message
Posted Feb 9, 2015@zrocweb
No problem. I understood that you were well intentioned, but I wanted to let you know the how and why behind the way it was built in the first place. Which plugins are causing issues for you? Most of the time It's an order of operation problem with other plugins which manipulate inventory.
Scenario 1 (incompatible with MultiInv):
Plugin saves the inventory of the player, clears it, then teleports the player. MultiInv sees a blank inventory when they change worlds. After the game, the plugin restores the inventory then teleports the player to the last location they were at. Since the inventory was restored in the other world, MultiInv sees the teleport, then wipes their inventory.
Scenario 2 (Compatible with MultiInv):
The plugin teleports the player, then saves their inventory. MultiInv saw the teleport and corrrectly saved the inventory for the old world. After the game the plugin restores the inventory of the player, then teleports that player to the last location they were at, at which point MultiInv restores their correct inventory. Everything works as it's supposed to and the user is none the wiser.
-
View User Profile
-
Send Message
Posted Feb 9, 2015@Tux2
Hey Tux.. Sorry man. Wasn't trying to tell you your business. I know your an experienced programmer and you know your shit... Sorry if my write up lead you down that path. Was not the intention...
-
View User Profile
-
Send Message
Posted Feb 9, 2015@Tux2
The latest off your Jenkins like you told me to.
-
View User Profile
-
Send Message
Posted Feb 8, 2015@MCTylerPVP
What version of the plugin are you using again?
@rbos
The error below is an error in WorldInventories, which I am quite surprised you are still running! Also, yes, Java 8 is wreaking havoc in a few plugins, especially inventory management so reverting to Java 7 will most likely solve your problems on import. Also, for MultiInv to save anything to the database you'll want to switch worlds. MultiInv doesn't save anything until you switch a world as it lets Minecraft handle the current world's inventory. Also, yes, MultiInv isn't 100% fully compatible with Java 8 when you've got mySQL enabled and I'm trying to figure out the reason why.
-
View User Profile
-
Send Message
Posted Feb 8, 2015Whats going on here?
Error
Is it because I use Java 8 like below?
-
View User Profile
-
Send Message
Posted Feb 8, 2015Hi,
Using the MultiInv jenkins build from January 25th on an offline-mode server slaved to Bungee. I installed MultiInv.jar next to WorldInventories.jar, ran it, allowed it to generate its configuration, stopped the server, edited the configuration to point it to MySQL, restarted.
MultiInv created three tables in the database, with no contents. I signed in, signed out, and no data appeared in the tables.
I then restarted the server and reverted the SQL settings to false, started it, and signed in/out. It created files in the UUID folder in the plugins folder which ended up as zero bytes.
I removed WorldInventories and ran the same tests with the same results.
[17:05:24 INFO]: Plugins (34): WorldEdit, Minigames, PetitionPlugin, TuxTwoLib, WorldInventories, WorldBorder, Yamler, WorldGuard, NoCheatPlus, BungeePortals, RedstoneSensor, TheCleaner, PluginReloader, InfiniteDispensersAndDroppers, SignEdit, SignColours, RedstoneClockDetector, Teleports, CraftBukkitUpToDate, PermissionsEx, SQLibrary, InfoBook, Bans, EasySpawnPlus, Vault, Catacombs, MyWarp, ChestShop, MultiInv, CloudChatBukkit, Fe, VanishNoPacket, OtherDrops, CraftBook
Also, when I did multiinv mvimport to pull in WorldInventories configs, it gave me an error:
http://pastebin.com/7GKHBQWZ
edit: Java 8, which I see below may be a problem. Hmm. Might have to revert.
-
View User Profile
-
Send Message
Posted Feb 8, 2015@Tux2
I havent tried them, got the latest one from here. Will try.
-
View User Profile
-
Send Message
Posted Feb 8, 2015@Tux2
Can you look at this comment:
http://www.spigotmc.org/threads/multiinv-or-a-other-plugin-error.48588
-
View User Profile
-
Send Message
Posted Feb 8, 2015@zrocweb
Hey, there are very specific reasons for the way that it works and every event priority is there for a reason. Yes, I understand highest is the lowest priority, followed only by monitor, however the game mode event can be cancelled and having my plugin trigger first would mess up their inventory if it was cancelled first. I also clear, then replace the inventory instead of adding it because that also causes issues. If it's causing problems with a plugin it's most likely an order of operations problem with the other plugin. If however you can let me know which plugins are causing issues I can definitely see about making them compatible.
Please remember that I have been maintaining this plugin for over two years and there is a reason behind every design decision.
-
View User Profile
-
Send Message
Posted Feb 8, 2015Tux, you do realize that some of your events (understandable for some of them) are set to priority of HIGHEST, which is actually the lowest in the priority chain, right? Specifically your gamemode event. you should change this to .LOWEST so it triggers first and then other plugins trigger after yours since your should take priority on gamemode changes.
Secondly, when you add inventory back to the player are you adding items or just replacing the players inventory. I hope "adding" and not "setting" as this causes issues with other plugins (at least for the current build where other plugins are triggered before yours)
-
View User Profile
-
Send Message
Posted Feb 7, 2015@MCTylerPVP
I actually develop the plugin in Linux, so I'm very familiar with that. It's Windows compatibility that's sometimes flaky as I don't really run Windows on my computers.
-
View User Profile
-
Send Message
Posted Feb 7, 2015@Tux2
I didn't delete any tables...lol I barely know how to access mysql...I use linux and type the access command for mysql then === create multiinv; === then === use multiinv ===, and thats all...Maybe its set up for Windows users...idk...But it works now!
-
View User Profile
-
Send Message
Posted Feb 7, 2015@TNTUP
Have you tried the latest dev build available from the Jenkins? I was fixing a lot of issues with Enderchests and regular inventories.
-
View User Profile
-
Send Message
Posted Feb 7, 2015Getting several reports about EnderChest losing stuff!!! Can't do anything but I suspect hardly thats MultiInv causing it but idk how to replicate the issue... Going to disable enderchests because of this plugin and its the most critical one because for worldseparated inventories... Forced to use this plugin. IS there any fixes available about enderchests?? This is driving me nuts and I can't do anything for them
-
View User Profile
-
Send Message
Posted Feb 7, 2015@Tux2
Thank you for your work! Had to stop the conversion for now. Let me know when you have a build available :)
-
View User Profile
-
Send Message
Posted Feb 7, 2015@MCTylerPVP
Hey! I am so glad you're enjoying it! You must not have deleted the tables the plugin created the first time, however your quick fix definitely would do the trick. As far as donations go the "Donate" button in the top right hand corner of the page goes straight to me for the plugin.
@externo6
I'm still working on faster conversion from Multiverse-Inventories. The way they have it set up in their plugin is really a pain to work with (especially since the banners are so glitched) so I'm having to re-write it on my side for a faster import.
-
View User Profile
-
Send Message
Posted Feb 7, 2015@MCTylerPVP
Yeah I have quite a few over 18k to convert. Been going for 2 hours and its only done 2888...
-
View User Profile
-
Send Message
Posted Feb 7, 2015THANKS!
Tux can you give me a donate link? You have worked very hard keeping up with Mojang changes and I would like to appreciate what you do. Thank you very much, A server would be terrible without this plugin IMHO.
-
View User Profile
-
Send Message
Posted Feb 7, 2015@externo6
I hate it for my players but there is just too much junk in old files...I only saved the skyworld inventories! The rest starts new. Its a Prison server anyways...
-
View User Profile
-
Send Message
Posted Feb 7, 2015@Tux2
Any way to speed up conversion from Multiverse-Inventories?