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 Jul 19, 2014@ZachBail
GMI 2.5.1 has been uploaded as is awaiting Bukkit approval...
-
View User Profile
-
Send Message
Posted Jul 14, 2014@Topo4321
The database in the plugins folder is for SQLite NOT MySQL, you need to connect/login to your MySQL server and create an empty database there (and also set up the username/password if you haven't got one already).
-
View User Profile
-
Send Message
Posted Jul 14, 2014@eccentricnz yes, i have the db but it is not on MySql... is in the plugin's folder D: (sorry for poor english ç_ç )
-
View User Profile
-
Send Message
Posted Jul 14, 2014@Topo4321
So what exactly is the problem?
-
View User Profile
-
Send Message
Posted Jul 14, 2014Yes i Have :)
-
View User Profile
-
Send Message
Posted Jul 14, 2014@Topo4321
Do you have a database called "GMI"?
-
View User Profile
-
Send Message
Posted Jul 14, 2014I've got a problem with mysql D: mysql: url: mysql://localhost:3306/GMI password: *LOL* user: Michele database: mysql help me please ç_ç :) bye and good plugin
-
View User Profile
-
Send Message
Posted Jul 14, 2014Great plugin eccentricnz,
Any way to add a bedrock break option in the config? It would keep the players from making void holes on my server.
Other than that, just a few buggies to report.
- My no piston move still lets pistons move the blocks although for the most part the plugin still does a good job of tracking the movements. You can however spam a lever really fast and create survival blocks still. I prefer just not letting the pistons move in the first place.
- You can spawn in infinite music discs since the jukebox spits them out.
Here's my config just to share with anyone looking for a decent one to start with. This is setup for a good fun/server protection balance. It's worked great for me so far.
I just block any teleporting, enderchest commands, and voting here to prevent inventory problems the players may have. Also with Essentials you can disable all gamemode commands but gmc and gms. This stops players from going into adventure mode and creating more opportunity to mess up their inventories. Also don't just block commands for gamemode per world. Completely remove gamemode permissions from the players groups in worlds you don't want them to use it in.
Thanks for the great plugin eccentricnz.
-
View User Profile
-
Send Message
Posted Jul 8, 2014@McMafia2092
Considering your config, that sounds like normal Minecraft behaviour to me... though I don't no why they bother with the TNT, why not just mine the placed blocks...
If I was you I would ban the a$$h%#les for abusing the server rules
-
View User Profile
-
Send Message
Posted Jul 8, 2014Two of my donators let me know they could do this
one is in creative putting gold blocks down the other is in survival placing tnt and letting it explode and picking up the drops here's my config:
armor: true debug: false dont_spam_chat: false enderchest: true no_drops: true no_falling_drops: false no_pickups: false remove_potions: true restrict_creative: false save_on_death: true survival_on_world_change: false xp: true track_creative_place: enabled: false break_no_drop: false no_piston_move: false creative_blacklist: false blacklist: - TNT - BEDROCK - LAVA_BUCKET command_blacklist: false commands: - give - i - buy - sell uuid_conversion_done: true storage: mysql: url: mysql://localhost:3306/GMI password: mysecurepassword user: bukkit database: sqlite
-
View User Profile
-
Send Message
Posted Jul 7, 2014@eccentricnz
Yes, turning track_creative_place did solve the lag, thanks for looking into problem :)
-
View User Profile
-
Send Message
Posted Jul 5, 2014@agligorijevic1998
You could try turning off
track_creative_place, thexpsetting has nothing to do with a BlockXPEvent (it just switches your XP levels on gamemode change), in fact there is no registered BlockExpEvent in GMI at all... as it has no need to check whether you get XP from mining a block.EDIT: I've looked back at some of my timings and there are no BlockExpEvent in my timings at all, this may be a plugin conflict? I have
track_creative_placedisabled... as this in NOT a creative control plugin.EDIT 2: Ah looking deeper I see, BlockBreakEvent is a sub-class of BlockExpEvent. 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).-
View User Profile
-
Send Message
Posted Jul 5, 2014Hi, I like your plugin but it's lagging my server with BlockExpEvent even when XP is set to false. Here is timings for GMI http://prntscr.com/3zo4p4
-
View User Profile
-
Send Message
Posted Jul 4, 2014@Cribb22
You need to create the database first...
-
View User Profile
-
Send Message
Posted Jul 4, 2014GMI did not import the Inventories to MySQL database... my config is the following... whats wrong?
storage: mysql: url: mysql://localhost:3306/GMI password: ** user: 6 database: mysql
User and Password are correct! but theres no table in the Database that i create
-
View User Profile
-
Send Message
Posted Jun 24, 2014@eccentricnz
http://dev.bukkit.org/bukkit-plugins/attributesapi/
http://cs312327.vk.me/v312327094/578a/lsLL8rKQjlc.jpg
It`s not LORE stats. It`s official minecraft stats (all swords have bonus damage stat)
-
View User Profile
-
Send Message
Posted Jun 23, 2014@Bodyash
Can you give an example of an item that you would use that has custom NBT tags on it? And how you put them on there...
-
View User Profile
-
Send Message
Posted Jun 23, 2014No, it`s cant save NBT tags :c Tested
-
View User Profile
-
Send Message
Posted Jun 20, 2014@MetalGearDaner
Probably not, you're trying to use two different inventory management tools and there are bound to be conflicts. You'll have to use one or the other. I suggest you have a look at creative control - last time I looked it had been updated... Or make the VIP world permanently creative, so they get their creative inventory in that world and their survival inventory in the normal world
-
View User Profile
-
Send Message
Posted Jun 20, 2014@eccentricnz Okey, thank you. And I have another problem I would like to solve with your help. Look, I have a VIP world where VIPs (rank) can access and build in creative. MultiverseInventories separate automatically the normal world inventory with the VIP world inventory, but with GamemodeInventories installed, it seems to have lots of inventory problems, when you access an enderchest, a normal chest or even press the "delete item" option in the creative gamemode interface, the entire inventory gets corrupted and mixed with the normal world inventory. Is there any way to fix this?