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.
In reply to eccentric_devotion:
That's fine, thanks for the reply! I finally got it working. GMI, here I come. :D
My dear author!
I'm a host on Aternos. My server's version is 1.15.2. It's a creative/survival server.
We need your super plugin!
In their site (aternos), plusgin must be from bukkit or spingot. So there is your plugin but version is just v3.1 for 1.14, update on 20.07.2019.
There are so many people wait new version. We can't add plugin from private download.
Could you help us? Could you upload version for 1.15.2 to bukkit or spingot? Then we can download to our servers. They are so many hosts in Aternos. We will appreciation of your support!
In reply to james_bq:
Uploaded
any word on 1.16?
In reply to StrikeWyrm:
http://tardisjenkins.duckdns.org:8080/job/GameModeInventories/
Though the only change that affects GMI is if you have ZOMBIE_PIGMAN_SPAWN_EGG in the blacklist, you'd need to change it to ZOMBIFIED_PIGLIN_SPAWN_EGG
[19:39:06 ERROR]: Error occurred while disabling GameModeInventories v3.1 (Is it up to date?)
java.lang.NullPointerException
at me.eccentric_nz.gamemodeinventories.GameModeInventoriesStand.saveStands(GameModeInventoriesStand.java:66) ~[?:?]
at me.eccentric_nz.gamemodeinventories.GameModeInventories.onDisable(GameModeInventories.java:45) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:323) ~[patched.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:360) [patched.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:427) [patched.jar:git-PaperSpigot-"4c7641d"]
at me.eccentric_nz.gamemodeinventories.GameModeInventories.onEnable(GameModeInventories.java:111) [GameModeInventories.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) [patched.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [patched.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:407) [patched.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:359) [patched.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:318) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:408) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:372) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:327) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:267) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:563) [patched.jar:git-PaperSpigot-"4c7641d"]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]
Help!
In reply to xipsahoy:
1.8 lol
try using a build labelled for 1.8 rather than 1.14 for a start.
And use an issue, not the comments in the future...
the plugin is wonderful, and it allows me to have control over the creative, but I have a problem due to another plugin,
I use the "invunload" plugin https://www.spigotmc.org/resources/1-13-invunload-worldguard-integration.60095/
This plugin allows to use / unload and / dump commands, to automatically save things from your inventory to chests, but by activating gm creative, players can pass things to their chests using / unload, and this is a problem
Could you add some support for the plugin?
present the same problem to "invunload"
In reply to giantpenguin0:
Blacklist the commands, so they can't use them in creative gamemode.
In the GMI config:
command_blacklist: true
commands:
- unload
- dump
- give
...
In reply to eccentric_devotion:
muchas gracias
Still works Spigot 1.15.2!
In reply to ItsMitchYT:
Sure does, but you probably want to grab the latest build from here: http://tardisjenkins.duckdns.org:8080/job/GameModeInventories/
In reply to eccentric_devotion:
Thank you for the Jenkins link, I'll keep this for future, I believe I have a recent build found on your GitHub.
In reply to ItsMitchYT:
There are no downloads from Github, unless you download the source code and compile it yourself...
Is there a better way to message you than here, I feel like I'm just spamming now.
I'm having an issue where I can no longer join the server as the owner or else the server crashes, and it is being caused by game mode inventories 100%
In reply to amanamaguchi:
Issues belong on the issues page, not in the comments :)
Either here: https://dev.bukkit.org/projects/gamemodeinventories/issues
or here: https://github.com/eccentricdevotion/GameModeInventories/issues
Hey there! Firstly this plugin is INSANELY useful =) Despite its claim to not be the "creative control plugin" (which is expensive) - it has many features that does control creative - in addition to the separate inventories. With a couple other plugins I've been able to construct a proper creative control for my staff, without having to pay an exorbitant amount.
Unfortunately I recently switched to paper spigot (A wonderful change i can not afford the lag of going back on lol) and this was the only of 50-60 plugins that didn't work in paper... I know with this being the bukkit threads, and paper spigot being several levels modified away, its not something that i should just expect to work... but is unfortunate to lose so many of staffs inventories and enderchests - as well as such a useful plugin......
Paper claims it can use nearly any plugin spigot does, and ofc spigot runs this fine... so i hope there could possibly be some future support =)
In reply to parker_pajamas:
Update from the Jenkins server
In reply to eccentric_devotion:
Oh wow, such an active dev. Id definitely call that "eccentric devotion" ;D
Are you saying that a new update is coming out for me to test? Because i am using the most recent version posted to jenkins on Feb `16th.
Here's a pastebin of the error : https://pastebin.com/h6W0bG20
In reply to parker_pajamas:
I'd say you have something wrong with your config file. Throw it up on pastebin as well