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 Jan 6, 2015@Slaand
I've never had anything like this happen, so in order to fix it (if it is GMI) I will need to know the exact steps needed to consistently reproduce the issue. Please make a ticket with full details of your setup and how to get huge amounts of XP.
-
View User Profile
-
Send Message
Posted Jan 6, 2015@eccentricnz
Idk, but only after placing this plugin, we have problems with huge exp lvl
-
View User Profile
-
Send Message
Posted Jan 5, 2015@Slaand
The plugin has no capability to give XP...
-
View User Profile
-
Send Message
Posted Jan 5, 2015Something wrong with plugin, after reload some players are getting 50000 exp level :(
-
View User Profile
-
Send Message
Posted Jan 1, 2015@UnwrittenPaper
-
View User Profile
-
Send Message
Posted Dec 29, 2014@Zilacon
-
View User Profile
-
Send Message
Posted Dec 29, 2014@eccentricnz
From the looks of your plugin it is indeed exactly that. As the entire purpose of creativecontrol and limitedcreative is to restrict gamemodes from using specific items, accessing things, etc. Which everything your plugin does.
However if it does not allow item ID's to be used in the blacklist this plugin is absolutely useless to any forge or modded server. Is it programmed to only use Bukkit Material names or does it work with ID's as well?
No matter how much you claim this is not like those 2, it is exactly like it. Only yours is more simplified and to the point with no abundance of extras. Which i like.
You however never answered my other question about its compatibility. Since its a pretty straight forward plugin with nothing fancy like GUI's or particle effects i am going to assume it is cross-compatible? I would ask my programmers to make a similar plugin but it seems pointless to wait weeks for them to make something i could just pickup on dev.bukkit. None the less when APOC makes plugins they are built to work on every minecraft version as possible.
-
View User Profile
-
Send Message
Posted Dec 29, 2014@Zilacon
No, this plugin is not meant as a replacement for limited creative or creative control - http://dev.bukkit.org/bukkit-plugins/gamemodeinventories/#w-what-it-doesnt-do
-
View User Profile
-
Send Message
Posted Dec 29, 2014@eccentricnz
Will this be a complete replacement for LimitedCreative?
And if so does it support 1.2.5-1.7.10? I have 12 servers 1.2.5/1.4.7/1.5.2/1.6.4/1.7.10
Thanks.
-
View User Profile
-
Send Message
Posted Dec 19, 2014@chezpaul2
Works fine with Multiverse-Core. I don't know what 'health' permissions are, where did you come up with that one? And you shouldn't actually need to give the
gamemodeinventories.usepermission as it is true by default.-
View User Profile
-
Send Message
Posted Dec 19, 2014So why is it that it doesn't work for me.
I'm running Cauldron Server 1.7.10 running forge 1231.
I gave use and health permissions to users but they keep the same inventory when switching from a survival world to a creative world.
Or am I wrong in thinking this works with Multiverse Core ?
-
View User Profile
-
Send Message
Posted Dec 16, 2014@drspinderwalf
gamemodeinventories.use
add that permission then it work.
-
View User Profile
-
Send Message
Posted Dec 16, 2014Wow, I'm sorry. It looks like spigot was the issue! Even though I tried building the latest a few times it was broken so I assumed something was wrong with the plugin; however, yet another update to the latest spigot fixed the issue: It's working fine now! Thanks, and sorry for the noise.
-
View User Profile
-
Send Message
Posted Dec 16, 2014Hi, eccentricnz.
Your plugin is fantastic. Love it. However, it seems to fail to switch inventories over on gamemode change with the latest spigot 1.8 snapshot. I've attempted to load only this plugin with a newly generated world with no success. I've gotten it to trigger but it appears to be very random and with low probability.
Anything I can provide to help?
openjdk 7 on linux.
-
View User Profile
-
Send Message
Posted Dec 14, 2014@dvargas135
Stop the server before editing the config, don't use /reload
-
View User Profile
-
Send Message
Posted Dec 14, 2014@eccentricnz
I have modified the config and enabled all bypasses, I added gamemodeinventories.bypass to a group and the only thing it bypasses is the blacklist.
Please help
-
View User Profile
-
Send Message
Posted Dec 4, 2014@eccentricnz I have tried this several times through /gmi dont_spam_chat and via config file. This has not removed the messages.
-
View User Profile
-
Send Message
Posted Dec 3, 2014@RuinedSurvival
Reading is a skill, all the info you need is on this page...
/gmi dont_spam_chat-
View User Profile
-
Send Message
Posted Dec 3, 2014Can you add a a config to disable the messages? Or can you send me the source?
-
View User Profile
-
Send Message
Posted Dec 2, 2014@ThisUsernameIsMine
While you're testing, I've added a
restrict_spectatorconfig option andgamemodeinventories.spectatorpermission node, so:restrict_spectatoris true (use/gmi restrict_spectatorto toggle it)gamemodeinventories.spectatorpermission they will not be able to change to spectator modeGMI 2.5.5 build #59 on the TARDIS Jenkins server...