Per World Inventory
The way this plugin stores data is fundamentally different from MultiVerse-Inventories. Like MV-I, this plugin saves data in a .json format, but that is where the similarities end. Not only does this save your inventory, it saves your stats as well! This includes things like active potion effects, exp, level, economy balance, and more. These all can be configured on a per-item basis, should you not want all of these saved. See the Configuration section below for these. All commands can be seen ingame with the '/pwi help' command.
> Configuration
########################################## # PerWorldInventory configuration file # # # # If new values are added to the # # config, they will not automatically # # be added here. They will default to # # false if not present. # ########################################## # Version of the config. DO NOT CHANGE!!!!! config-version: 3 # If true, the plugin will change player's gamemodes when entering a world # The gamemode set is configured in the worlds.yml file manage-gamemodes: false # If true, players will have different inventories for each gamemode separate-gamemode-inventories: true # All settings for players are here: player: # Save and Load players' economy balances. Requires Vault! economy: false # Load players' ender chests ender-chest: true # Load players' inventory inventory: true # All options for player stats are here: stats: # Load if a player is able to fly can-fly: true # Load the player's display name display-name: false # Load a player's exhaustion level exhaustion: true # Load how much exp a player has exp: true # Load a player's hunger level food: true # Load if a player is flying flying: true # Load what gamemode a player is in. This is shadow-set to false if # 'manage-gamemodes' is true, to stop infinite loop gamemode: true # Load how much health a player has health: true # Load what level the player is level: true # Load all the potion effects of the player potion-effects: true # Load the saturation level of the player saturation: true # Load a player's fall distance fall-distance: true # Load the fire ticks a player has fire-ticks: true # Load the maximum amount of air a player can have max-air: true # Load the current remaining air a player has remaining-air: true # Config Version 2 below this line # # Configure the amount of time between saves, in seconds # Default is 5 minutes (300 seconds) save-interval: 300 # Config Version 3 Additions below this line # # Attempt to figure out which world a player last logged off in # and save/load the correct data if that world is different. # REQUIRES MC 1.9.2 OR NEWER load-data-on-join: false # Print out debug messages to the console for every event that happens in PWI debug-mode: false
Pretty straightforward, turning the options to false will cause that item to not be loaded on world change. The option 'manage-gamemodes' is set to false by default to not interfere with other plugins that you may have to manage GameModes.
groups: world1: worlds: - world1 - world1_nether - world1_the_end default-gamemode: SURVIVAL world_2: worlds: - world_2 default-gamemode: CREATIVE
This is where you configure your world groups. Follow the default or above example to get the format. If you have 'manage-gamemodes' set to false in your main config, the 'default-gamemode' option here does nothing, and can be safely removed. Worlds in the same group will all share the same inventory and stats.
Once you have made your desired changes, simply type /pwi reload.
A default inventory loadout is provided for each configured group, as well as for a server fallback, if for some reason a world isn't in any group. These can be set ingame by using the '/pwi setworlddefault [group]' command, where group is a configured group name, or 'default'. If no group is specified, it will set the loadout for the group that you are currently standing in. This does not require a reload.
> Permissions and Commands
Permissions:
- - perworldinventory.admin: Defaults to Ops, grants all other permissions
- - perworldinventory.convert: Allows user to convert data from other plugins
- - perworldinventory.reload: Allows user to reload configs and world groups
- - perworldinventory.setdefaults: Allows user to set the default inventory loadout for a group
- - perworldinventory.notify: Users with this permission will be notified if the config is out of date
- - perworldinventory.bypass.*: Users that have this will keep their inventory when changing worlds or gamemode
- - perworldinventory.bypass.gamemode: Users that have this will keep their inventory when changing gamemode
- - perworldinventory.bypass.world: Users that have this will keep their inventory when changing worlds
Commands:
- /pwi help: Shows the help page
- /pwi convert: Converts data from MultiVerse-Inventories; see below
- /pwi reload: Reloads the config file and worlds file
- /pwi setWorldDefault [default | <group_name>]: Sets the default inventory loadout for the specified group, or server default. If no parameter is given, it will sets the loadout for the group you are currently standing in.
> Conversion
If you are converting from MV-I, simply run the "/pwi convert multiverse" command and the plugin will take care of everything. You must have MV-I running for this. Keep in mind, converting only works with MV-I version 2.5, it will not work on 2.4. When MV-I is updated from 2.4 to 2.5, it switches from yml to json files, but does not convert the data until it is used. Be sure to keep your MV-I data around, just in case something does go wrong.
A converter from MultiInv is still in the works. There is a beginning framework as of version 1.4.0; do not use it! It is not fully operational yet, and will result in errors.
> Miscellaneous
Support If you have an issue, please go here. Include your configs and relevant logs!
> Other
The code repository can be found on both Github and BitBucket.
@Gnat008:
Is economy separation not supported any more? I desperately need this.
It would be great if this saved the health above 20 so it could work with plugins that give you extra hearts.
Amazing Plugin, Thank you Author ♥ Can you please Add PlayerVault Support - Player Inv | Done - EnderChest | Done - PlayerVault | Asking for it ♥
Hey, just wanted to say thankyou for making this great plugin, it works flawlessly and the world groups is a bonus :D
Anyone else have the issue where tinkers construct tools change to wood if you teleport to a world with a separate inventory. I also have the issue with draconic evolution tools and armor loose power storage, blood magic you loose your sigils, and thaumcraft wands and other tools disappear. Is there any fix for these issues?
Nice plugin, but MySQL will be awesome to see (to big servers of +50 online, the flatfile could be a big trouble!)
Gutes Plugin! Vielen Dank für das Plugin! Mit Craftbukkit 1.8 klappt es einwandfrei. Es wäre schön, wenn man noch Inventar Gruppen zwischen Gamemodes einstellen könnte. Z.B.: Das man in Survival und Adventure das gleiche Inventar hat.
Sorry all, I rarely check this site.
@Spacedrake1
There is currently no permissions to bypass. However, it sounds like you might want to consider enabling separation of gamemode inventories in the config.
@Androkai
I think that MultiInv grabs the data from whatever is configured, so it shouldn't matter from my end.
@dennisxddxdd
MySQL support is planned.
Please add a function that can export the data form your plugins to Minecraft world save or mysql
Is the converter for MultiInv planned to support both flatfile and mysql export/import or only flatfile?
I use a spectator plugin for the staff so they are not able to troll players. Is there a permission that can be used for specific players/groups to not have separate inventories? Currently when a staff member uses the spectator plugin, it overwrites the survival inventory. All items in enderchest and inventory are lost.
@KreatorB
Replied to your PM!
@Legoman99573_
Could you take a look at this: https://bitbucket.org/Gnat008/perworldinventory/issues/7/shared-inventories-working-for-admins-but I'm going to need more information to figure this one out.
Have a question, I have a multiworld sever and just added a survival world. I was wondering if I can make the inventory from my spawn_the_end & spawn_nether be the same as my survival world? Please help.... thanks!
@T0X1CCAT
when your done editing it. Stop/Restart the server, dont use the /reload command. this is common when owners use /reload to find more issues with a plugin.
@JamesWhatley
I have he same issue on my server as well. This has caused my server players to decrease. We need this fixed @Gnat008
@JamesWhatley
I replied to your issue on BitBucket
@T0X1CCAT
Can you go through exactly the steps you took, please?
Hey there
When putting this string into the worlds.yml and running the server, the string deletes its self and dosent run. Please help.
groups: Survival1: worlds: - Survival - Survival_nether - Survival_the_end - Survival2 - Survival2_nether - Survival2_the_end - Dungeons default-gamemode: SURVIVAL other: worlds: - Parkour default-gamemode: SURVIVAL ASkyBlock worlds: - ASkyBlock - ASkyBlock_nether - ASkyBlock_the_end default-gamemode: SURVIVAL
Heres the pastebin link - it might be a little easier to read:
http://pastebin.com/LtFJphLd
On my server I use your plugin to separate the inventories of Skyblock and the Hub world etc. But the skyblock spawn is in a separate world to the skyblock islands so that's why I share the inventories of the Skyblock world and then the skyblock spawn world. Shared inventories for these 2 worlds work for Admins but not for member? Can I have help on this please.
@Gnat008
@KreatorB
Should be fixed in latest version, once it's approved.
not sure what this does!
/pwi setdefault [default | <group_name>]
but when I try to use it it says internal error
Can you give more details on this please
And lastly the stats, how do you see them or use them?
Thank you