GameMode Inventories
Downloads
I'm too lazy to upload GMI files to Bukkit anymore, as builds are automatically created when the plugin is updated and changes pushed to GitHub.
For 1.18.x, please download GMI from the TARDIS Jenkins server: http://tardisjenkins.duckdns.org:8080/job/GameModeInventories/
Features
GameMode Inventories allows you to have separate inventories for Creative and Survival game modes (it also works for Adventure!).
- Inventories are saved and switched automatically
- Configurable option to save and restore inventories on player death
- Configurable option to also switch XP amount automatically (enabled by default)
- Configurable option to also switch armor automatically (enabled by default)
- Configurable option to also switch Ender Chest inventories automatically (enabled by default)
- Configurable option to restrict inventory opening for Chests, Ender Chests, Enchantment Tables, Anvils, Furnaces and Dispensers in CREATIVE game mode
- Configurable option to disable players dropping items from their inventories in CREATIVE game mode
- Configurable option to disable players from picking up items in CREATIVE game mode
- Configurable option to remove potion effects when switching from CREATIVE to SURVIVAL
- Configurable option turn off the plugin's messages which can get excessive when
no_pickups
andno_drops
are enabled - Configurable option to track the placement of CREATIVE gamemode placed blocks, then either: disable them from being broken, or, allow them to be broken but not drop anything - and also prevent pistons from moving them and deny the block dropping if the attached block is broken - this MUST be enabled for a world to work. You can specify a list of blocks you don't want to track as well
- Configurable option to prevents drops from falling blocks e.g. anvils, gravel, sand
- Configurable option to prevent the breaking of bedrock in CREATIVE, set to false to prevent breaks below Y<5 in all worlds, and Y>122 in the Nether
- Configurable blacklist of blocks that cannot be placed in CREATIVE (use Spigot Material names)
- Configurable blacklist of commands that cannot be used in CREATIVE
- Configurable option to preserve custom attributes when switching inventories (player and armour only)
- Configurable options to set which GMI features can be bypassed
- Configurable option to restrict spectator gamemode access
- Configurable option to switch to a creative world when changing to gamemode CREATIVE
- Localisable messages - edit messages.yml
- Support for using a MySQL database
Created in response to this plugin request: http:forums.bukkit.org/threads/separate-inventories-creative-survival.112187/
Featured in Curse's Minecraft Spotlights
How it works
Add the GameModeInventories.jar file to your server's plugins directory and start up the server. A config file will be created automatically with the default values.
Then all you have to do is switch game modes and your current inventory, armor and XP will be saved and your new game mode inventory will take its place.
What it doesn't do
GameMode Inventories is not a replacement for the Creative Control plugin:
- its primary purpose is an inventory management tool
- this is NOT likely to change anytime soon
- please stop asking
GameMode Inventories is an open sourced project, if you want to make the changes yourself, you are free to do so, as long as the plugin is released under the same license and conditions as GameMode Inventories.
Timings
Please do not bother posting timings for this plugin, here's why:
- See above
- I don't use any of the plugins' 'restriction' features
- You should expect to see GMI working hard if you have
track_creative_place
enabled, this is normal, after all, GMI is watching all your players all the time, and is keeping them all in line while not bothering you. Any server owner will eventually have a problem if he pushes his hardware too much, for example by running lots of heavyweight plugins. - If you do have a problem, the solutions are to either add more RAM/cpu power, re-prioritize your plugins to drop a few you don't desperately need, reduce your max players or seriously think about why you are letting your players have Creative gamemode at all (if you can't trust them not to abuse it, then don't let them have it, or set up a creative only world).
- Finally, don't expect SQLite to be able to handle big loads - if you are running this plugin on a server with
track_creative_place
enabled, you should probably be using MySQL as the GMI database provider
Commands/Configuration
There are several config options:
save_on_death: [true|false] xp: [true|false] armor: [true|false] enderchest: [true|false] remove_potions: [true|false] restrict_creative: [true|false] no_drops: [true|false] no_falling_drops: [true|false] no_pickups: [true|false] dont_spam_chat: [true|false] track_creative_place: enabled: [true|false] break_no_drop: [true|false] no_piston_move: [true|false] attached_block: [true|false] worlds: - world dont_track: - STONE - DIRT creative_blacklist: [true|false] blacklist: - TNT - BEDROCK - LAVA_BUCKET break_bedrock: [true|false] command_blacklist: [true|false] commands: - give - i - buy - sell custom_attributes: [true|false] bypass: inventories: [true|false] items: [true|false] blacklist: [true|false] survival: [true|false] commands: [true|false] restrict_spectator: [true|false]
You can enable/disable the options with a command (all options are available via tab completion):
/gmi save_on_death /gmi xp /gmi armor /gmi enderchest /gmi remove_potions /gmi restrict_creative /gmi restrict_spectator /gmi no_drops /gmi no_pickups /gmi dont_spam_chat /gmi track_creative_place /gmi break_no_drop /gmi attached_block /gmi break_bedrock /gmi creative_blacklist /gmi command_blacklist /gmi no_falling_drops /gmi custom_attributes /gmi bypass.inventories /gmi bypass.items /gmi bypass.blacklist /gmi bypass.survival /gmi bypass.commands
Permissions
There are four:
gamemodeinventories.use
Default: true - Allow players to have separate inventories for each game mode
gamemodeinventories.death
Default: op - Allow players to save their inventories on death, and restore them on respawn
gamemodeinventories.bypass
Default: op - Allow players to bypass inventory opening restrictions in CREATIVE (when restrict_creative: true
). Also allow players to bypass the no items drops / no item pickups restriction (when no_drops: true
or no_pickups: true
). As of version 2.5.4, you can configure which features can be bypassed:
inventories
- if true players can bypass not being able to open inventories in creativeitems
- if true players can bypass not being able to pick up and drop items in creativeblacklist
- if true players can bypass not being able to place and use restricted block and items in creativesurvival
- if true players can bypass being forced into survival gamemode when changing worldscommands
- if true players can bypass not being able to place and use restricted commands- If any of the bypass options are set to false, then nobody will be able to bypass them (regardless of whether they have the permission or not)
gamemodeinventories.admin
Default: op - Allow players to change config options
Source code
Dev builds
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.
@ccattell
Added restoring armour after death... check the files page:
any idea yet if you would be able to restore armor as well as inventory?
@jelluh24
You must have a LOT of XP, as you have managed to reach and exceed the the hard coded max level for the plugins XP lookup tables. Try using up some XP and try again.
Level 105112 > hard max level 100000
You could also look at using XPKeeper to store some of your XP in the future, though until you drop below 100000, you won't be able to deposit any...
The plugin doesn't work and I'm getting this error: http://pastebin.com/jCseFc4D
Hello i could not see a option to keep parts of the armor but not all of it so mabye a donator could have it but it would make them not invincible like if they allways keep protection 4. i just woundering if there is an option for this Thanks Regards George
@ccattell
It is only coded to restore inventory contents, not armour, at the moment, but will have a look after work and see if I can do both :)
Hey, just noticed something that may need looking in to. Save on death seems to work fine for everything except the armor you are wearing at the time of death. Is this as intended?
@newdevildog22
Use the commands to edit the config, don't manually edit the file and reload - that will NOT work.
Please list the circumstances where the plugin fails to meet what it says it does (a video would be good), so I can fix what seems to work for me everybody else...
crap...
save on death always enabled...
it doesent work on all chests
pickup and
no drops doesent work...
GameMode Inventories v1.6
Added a config option to remove a player's potion effects when they switch from CREATIVE mode to SURVIVAL -
remove_potions: [true|false]
- enabled (true) by defaultCheck the Files page for the download
@sgebbia
The name of the plugin is GameMode Inventories, not GameMode PotionEffects, so I wouldn't call it a glitch. You'll notice that nowhere in the description does it say that it will do the things you want it to - a potion effect is not part of the inventory! If you would like me to add a new feature that removes potion effects, then you could ask nicely for a feature request (and edit the font size in your post - there's no need to shout...)
GLITCH WITH THE PLUGIN
This plugin is awesome but theres just one thing that it doesnt switch. Potion effects. people are able to go into my creative world, drink some potions, and then return to the normal world with the effects of the potion still lasting. Please help!
@eccentricnz Thank you for the help! I am absolutely loving this plugin.
@MrVincent2310
Don't edit the config file manually, just use the commands
Hello, I am having a weird problem with this plugin. Everyitme I reload/restart my server, the config file always resets to default. I really like this plugin and I want to start using it so can someone help. Thanks
Hello.
Could you please add an option not to change player inventory? (use only other options)
For example, i have the Main world and Adventure world. The plugin MyWorlds changes gamemode when you entering a world. I use plugin Embargo to prevent players to carry tools to Adventure world. But they can access their enderchests, grab a tools and have easy diamonds.
@therealspoljo
Added to version 1.5.3 - check the files page
no_pickups: [true|false]
Use the
gamemodeinventories.bypass
permission to bypassNew file uploaded, adds TRAPPED chests to the
restrict_creative
config optionCheck the files page :)
@Smosh_0
The
gamemodeinventories.use
permission is true by default, so if you take it away, then players will not use any of GMIs features.@xghozt
That would require the plugin to log every creative block place location and then check every block break in survival. I rather think that would make the plugin into something that it is not meant to be which is an inventory management plugin, and not a block logger...