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_pickupsandno_dropsare 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_placeenabled, 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_placeenabled, 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.
-
View User Profile
-
Send Message
Posted Mar 7, 2014@cuddyier
SQLite
-
View User Profile
-
Send Message
Posted Mar 7, 2014Where is the data stored? MySQL?
-
View User Profile
-
Send Message
Posted Mar 6, 2014@eccentricnz
Yes I am aware of that you don't want it to be Creative Control, but the plugin is useless with it's lack of configurable options if you ask me. I like it, don't get me wrong, but it would help this plugin so much.
-
View User Profile
-
Send Message
Posted Mar 6, 2014@yannick_diepart
Set the
gamemodeinventories.bypasspermission to false for those players:- -gamemodeinventories.bypassor
gamemodeinventories.bypass: falseDepending on which permissions plugin you are using
@dimitri_dm2
See my comment here: http://dev.bukkit.org/bukkit-plugins/gamemodeinventories/?comment=204
-
View User Profile
-
Send Message
Posted Mar 6, 2014Hi, Is there a way to prevent Opped player to pickup and drops the items? For exemple to prevent missclicks etc...?
-
View User Profile
-
Send Message
Posted Mar 5, 2014Can you add a feature that physical blocks such as anvils, don't drop items when being placed on creative making them fall on a breaking block, such as a half slab?
PS, would it be possible, to like make it so you can't place specific blocks or items while in creative?
-
View User Profile
-
Send Message
Posted Mar 4, 2014@eccentricnz
Just wanted to say thanks man.. Your plugin is getting better and better!
-
View User Profile
-
Send Message
Posted Mar 3, 2014@diannetea
I've submitted a pull request to MobArena with what seems like a simple fix. Will let you know if it is successful :)
-
View User Profile
-
Send Message
Posted Mar 3, 2014@CoolV1994
Will think about it, this is not meant to be a creative control plugin, just an inventory manager. Placing blocks is not really related to inventory. WorldGuard is perfectly capable of preventing the placement of TNT.
-
View User Profile
-
Send Message
Posted Mar 3, 2014@JunHWhang
GMI does not prevent the
/cicommand from clearing your inventory - this is probably related to using the/reloadcommand - when installing new plugins you should STOP the server first...Video:
-
View User Profile
-
Send Message
Posted Mar 3, 2014SUGGESTION: Add the option to disable to use of TNT while in creative mode. So in creative you can't place/drop blocks of TNT, unless you have permissions.
-
View User Profile
-
Send Message
Posted Mar 3, 2014If I do /ci, it wont remove the items. but then, if I click on the item, my inventory clears. Can u make it to where I DONT have to click the items after doing /ci. thanks.
-
View User Profile
-
Send Message
Posted Mar 3, 2014Sometimes, when you changing gamemode from survival to creative, some of items are saving. It happened when I was testing this plugin(2.1.2 version) on the server on my computer. No plugins was exempt GameMode Inventories, spigot 1.7.2.
-
View User Profile
-
Send Message
Posted Mar 3, 2014Hi, whenever someone in creative joins a MobArena it wipes out both inventories (survival and creative).
MobArena stores the player's inventory before the game starts, and the author is looking into a fix but because of the way GMI stores inventories it is probably not going to be a simple fix on his end.
Is there any way you could add compatibility with MobArena to prevent this from happening?
-
View User Profile
-
Send Message
Posted Mar 1, 2014@Bambucha91
GamemodeInventories does not prevent players from being able to destroy blocks in creative...
-
View User Profile
-
Send Message
Posted Mar 1, 2014Well... When i am in creative i cant destroy anything... :?
What i have to write to make this happen, without making Creative users getting acces to chests?
-
View User Profile
-
Send Message
Posted Feb 25, 2014@Webster16
New file uploaded and awaiting Bukkit approval :)
-
View User Profile
-
Send Message
Posted Feb 25, 2014@eccentricnz
Thanks eccentricnz. This support would help prevent any further issues like this occurring in the near future if anyone else is using the "Force-Gamemode" option.
I disabled this option and continued using your plugin, my friend added a feature so when you leave and come back to the game your gamemode changes back to survival and your changes the inventory to the saved survival inventory. This is great for me and I think wouldn't hurt to be an option in your config for forced Gamemode. (perhaps overriding the properties Force-Gamemode feature?)
Thanks again, -web
-
View User Profile
-
Send Message
Posted Feb 24, 2014@Webster16
Didn't know about that option, will code up support for it in the next couple of days.
-
View User Profile
-
Send Message
Posted Feb 24, 2014Can you add support so if "Force-Gamemode" in server properties is set to true, you won't lose inventory and enderchest inventory when you reconnect and your gamemode is forcefully changed. =/
This support would be great and I will download this plugin again.
EDIT: or an option to change gm on join/reconnect.
thx