GameMode-Control
GameModeControl
A powerful lightweight plugin that helps you organizing game modes on your server.
Download GameModeControl for your server version:
- for 1.7 and below: use this version
- for 1.8 and above: use the latest version
Information
This plugin uses an auto updater, to keep itself up-to-date. You can disable this in your config by changing
options.auto-updateto false.
This plugin uses plugin metrics to analyze the servers using GMC. The collected data will be sent to bstats.org and can be viewed here. Everyone is able to see anonymous data, such as how many servers are using GMC, but not which servers. You can disable this feature in your config by changing
options.bstatsto false.
Commands
Help:
- <> = required
- [] = optional
- 1 | 2 = 1 or 2, but not both
- gmc.<permission> = permission to change your own and the gamemode of other players
- gmc.<permission>.self = you are only allowed to change your own gamemode
- gmc.<permission>.others = you have the permission to change the gamemode of other players
Command |
Function |
Permission |
/gm <id> [player] /gamemode* <id> [player] |
Change the gamemode of a player to the specified one |
gmc.gamemode[.self | .others] |
— valid values for id: 0, 1, 2, 3, survival, creative, adventure, spectator, su, c, a, sp | ||
/gm0 [player] /survival [player] |
Change the gamemode of a player to survival |
gmc.survival[.self | .others] |
/gm1 [player] /creative [player] |
Change the gamemode of a player to creative |
gmc.creative[.self | .others] |
/gm2 [player] /adventure [player] |
Change the gamemode of a player to adventure |
gmc.adventure[.self | .others] |
/gm3 [player] /spectator [player] |
Change the gamemode of a player to spectator |
gmc.spectator[.self | .others] |
/gmonce <player> [survival] [creative] [adventure] [spectator] |
Allow a player to change his/her game mode only one time |
gmc.gmonce |
/gmtemp <player> <game mode> <seconds> |
Change the game mode of a player only temporary (e.g. 30s) |
gmc.gmtemp |
/gmh [page | command] | Show all commands for GMC or help for a specific command |
gmc.gmh |
/gmi | Shows information about GMC, such as the version |
gmc.gmi |
/gmr | Reloads the whole server in order to reload the config of GMC |
gmc.gmr |
<small>* overrides the standard '/gamemode' from minecraft; you can still use /minecraft:gamemode for the "normal" /gamemode command.</small>
Installation
- Copy the file you have downloaded into your "plugins"-folder
- Restart your server, then stop it
- Edit the 'config.yml' and set the messages you want
- Start your server and enjoy
Configuration
If you want to reset the config, just delete the 'config.yml' file (in <your server folder>/plugins/GMC/). GMC will generate it on server startup. If you need an example, take a look at this example configuration.
Formatting codes
Please visit: minecraft.gamepedia.com/Formatting_codes
Aliases
Alias |
Description |
Example |
$player | will be replaced with the specified player | &cCould not find this player: &7$player |
$gm | will be replaced with the game mode, that has not been found | &cCould not find this gamemode: &7$gm |
Settings
-
force-gamemode
enable this feature to change the game mode of every player with the permission gmc.forcegm that joins your server to the specified game mode. -
auto-update
true if you want GameModeControl to keep itself always up to date, false if you just want to be notified if a newer version is available. -
bstats
true if you want to send server and player statistics to bstats.org. false if you want to disable this feature. The collected data is sent to bstats.org/plugin/bukkit/GMC.
Source code
You can find the source code here on github.com: github.com/ricardoboss/GameModeControl
ToDo list
- Please send me a pm, post a comment or use the github issues system and add the label 'enhancement' to it to suggest a feature
Bugs
There are no bugs at the moment :) (at least noone reported one). If you want to report a bug, please use the github issues system.
hi I once got a question I want the players no longer / gm 3
can do but you should still / gm 1 / gm 2 / gm 0 Make allowed how about for the Permission succession? ======
@hdcoder
You aren't using the latest java version. You have to update to at least Java 8 Update 51. The current version is Java 8 Update 60: http://www.java.com/en/download/
In reply to Forge_User_65281224:
Hello, I am getting this error upon installation: http://pastebin.com/TQvSBpik
I'm running the latest version of Spigot.
@aguane27
You can also control who's game mode will be changed on join. Use the gmc.gmforce permission to do so. When the player has this permission and joins the server, his game mode will be changed the one specified by you in the config.
Super Plugin. I had actually thought about making a similar one, but then I found yours! It would be nice if you shared the sourced code, why keep it secret? :-)
I would be nice if the player get an error message if he tries to change to a game mode which he has no permission to. "You are not allowed to change to Creative here"...
also you should add permission "gmc.gm.others" so we can decide who can change gm of other players! I think this is important.
@aguane27
This is actually possible! Just turn of forcing the game mode in the config. It's at the bottom ;)
Is there a way to have the game mode stay between logins? Right now if I log out in gm1, I am switched to gm0 when I log back in to my server. If there's not currently a way, could this be added to the suggestions?
Thanks!
@Marvin489
The file is awaiting it's approval, so you can download it in the near future!
Update to 1.8 please
Version for 1.8 (Beta 1.2.0) is awaiting it's approval! Then you can download it.
Can you update this to 1.8 to support spectator mode please?
Can you add a permission that only can change own gamemode but not others? :D
This came in handy for me, Since I couldn't get Default Craftbukkit commands to work with PEX without op-ing someone, This I can just put in to "Mycommand" and give alias' .gmon and .gmoff. for a certain rank specified that I can trust. Handy little tool you made here. Thumbs up
Hey one tip, You should put the source code on github, and not on pastebin. And on github, you should make the code type "Java" So it could put the lines that continue on the other line be in the same one and have the actual Java Programming format. If you need help on this, just pm me :)