GameModeChanger for MultiWorld-Server
GameModeChanger for MultiWorld-Server v1.3
GameModeChanger manages your player’s gamemode for each world.
If a player switches to another world on the server, GameModeChanger checks in config-file if players should play in creative, survival or adventure mode in this world!
Features
- change the gamemode of each player separately by command
- assign each world one gamemode
- edit plugin messages in config-file
- ADVENTURE-mode support
- create a “GameMode-whitelist” which contains all players whose gamemode should not be changed although they changes world
- permissions support
- grant access to creative mode command by permission node
- manage worldmodes by command
- set/unset pvp in each world (NEW)
Commands
/gmd | returns help |
---|---|
/gmd 0/1/2 | changes your own gamemode |
/gmd worldmode | returns the actual gamemode of this world |
/gmd worldmode 0/1/2 | changes the worlds gamemode and applies changes to every actual player in this world (except for whitelisted players) |
/gmd set <player> 0/1/2 | set the gamemode of a player manually |
/gmd wl <player> | puts or removes a player from GameMode-whitelist |
/gmd getwl | returns all players listed on gmd-whitelist (NEW) |
/gmd pvp | enables/disables pvp in actual world (NEW) |
Permissions
Use those permission nodes to give some players special access to some commands:
gmd.creative | gives a player full access to all gamemodes for himself |
---|---|
gmd.admin | gives a player full access to all GameModeChanger commands (only for server-moderators and/or admins) |
Configuration
Configuration is really simple. Just open config-file write your worlds in the right list and reload your plugins. The whitelist and the worlds gamemode can also be edited ingame. Messages must be edited in the file. Here is a preview for configuration:
## ## GameModeChanger Config-File ## DO NOT USE TAB! Otherwise your plugin will not work! ## config: creative: - world_nether survival: - world adventure: - world_the_end whitelist: - JohnLocke94 - FightingFox - bs1701 - harryak - blacksnowman007 - Hawkeye94 messages: unknown: Unknown command! doesnotexist: This player is not online or does not exist! changetosurvival: Your GameMode has been changed to SURVIVAL. changetocreative: Your GameMode has been changed to CREATIVE. changetoadventure: Your GameMode has been changed to ADVENTURE. worldmodesurvival: GameMode of this world has been changed to SURVIVAL! worldmodecreative: GameMode of this world has been changed to CREATIVE! worldmodeadventure: GameMode of this world has been changed to ADVENTURE! noperms: You have no permissions to do this!
Troubleshooting
If the plugin does not start and create its folder with config-file, check if you have installed JRE7.
JRE 6 users have to download this version instead of the main-version:
@JohnLocke94
Java 7 sucks. Can you please build one in Java 6? I need this plugin, but I can go find another if you can't.
@grid21
Hi grid21,
could you tell me your Java-Version, please? You'll find it by typing "java -version" in your console (any OS). You need Java 7 for running this plugin! (build 1.7.xx)
If it's not that version try to update Java by uninstalling the old version (important, because java is still using Version 6 if you don't uninstall it!) and install the new Java 7.
Regards,
JohnLocke94
Hey I get this error when I start up my server! Please fix this!
2012-06-21 12:47:16 [SEVERE] Could not load 'plugins\GameModeChanger.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: net/pirategaming/gmd/Gmd : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:151) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:213) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:189) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:166) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.UnsupportedClassVersionError: net/pirategaming/gmd/Gmd : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:140) ... 8 more
@JohnLocke94 Release of V1.1 will take place later, because I've got much work at school at the moment! Maybe I'll wait for Minecraft 1.3!
yo, you better hurry, cuz we want to play with your AWESOME plugin ;)
I've just started working on Version 1.1 for the plugin.
I hope it would be finished next week ;-)
@walkerm930
Sorry I don't understand why the plugin should check worlds out of another plugin.
That's what you mean, don't you?
It would be cool if this plugin had an option to check Multiverse for the game type of each world.
@Unpluggeddk
Okay permissions support like that would be included in next build!
why ? :
People on my server shuld be able to buy creative on my server via Buycraft..
So they buy the permission node for creative. but only for the world specified.
gmd.creative."Creative" <
Worldgmd.survival."Creative" <
World@sgcsim
Hi sgcsim, Could you post your config and tell me which worlds are affected by that problem, please?
Hi, i got problem sometimes when player /tpa to another player in survival world he stay with creative mode after tp ...
@Raciper
@Raciper No, the plugin will not support any inventory management! Therefore you have to install another one. But YES, you will be able to set the GameMode per world. For example if you are running a server with three worlds, world1 could be survival, world2 creative, and world3 survival again. But like I said above, I'm still working on getting the config File to work. (This is my first plugin).
Does the plugin save inventory when mode is changed?
Can permissions be set per world? I would like to have One world creative on the server