Game Mode Changer
How to Install
- Download the GameModeChanger.jar The one on the top is the latest or click download on the right
- Drag and Drop the GameModeChanger.jar into the plugins folder
- Start your server and that's it!
- Configure the config.yml
Git-Hub
How to make a Sign
-- Main Sign --
- Place down your sign
- Put [GameMode] on the first line
- on the second line put either [ toggle | creative | survival | adventure ]
- Press done to complete the sign
- You are now done
- To use the sign just right click it
-- Player Sign --
- Place down your sign
- Put [GameMode] on the first line
- Put [Player] on the second line
- Put [ survival | creative | adventure ] on the third line
- Press done to complete the sign
- You are now done.
- To use the sign just right click it
Description:
- This allows a player easily change someone's gamemode with custom messages to the player and the target. Plus you don't have to type the full name of the player. This is my first Public Plugin.
Version:
- 1.8 through 1.11
Features
- Allows a player to change their gamemode
- Allows a player to toggle their gamemode
- Allows a player to change someone's gamemode
- Allows a player to toggle someone's gamemode
- Custom Messages
- Use Signs to change gamemode's with creative | survival | toggle
- Signs are protected
- People in creative can't drop anything unless they have permission to bypass it. (For players and Staff) *Mainly Staff*
- People in survival can't drop anything unless they have permission to bypass it. (For players and Staff) *Mainly Staff*
- Multi-World Support
- Blocks people from abusing creative like xp potions, potions, spawning eggs, eggs
- Blocks people from using anything that requires a GUI. Ex. Furnaces, Crafting Tables, Brewing Stand.
- When players logs in/out there gamemode gets changed corresponding to the config file.
- Console support
- With one command you can set all players gamemode
- With a command you can set the default gamemode
- With a command you can get the default gamemode
- Get all online gamemode
- Towny support *blocks during war*
- Factions support *blocks within safezones and blocks within warzones*
Commands
<> are optional [] required
- /gm sur <player>
- /gm cre <player>
- /gm toggle <player>
- /gm help <sign>
- /gm setdefault [gamemode]
- /gm setall [gamemode]
- /gm getdefault
- /gm getall
- /gc <player>
- /gs <player>
- /gt <player>
Permissions
- gamemode.change To even access the rest of commands
- gamemode.creative.change.self To make yourself creative command
- gamemode.survival.change.self To make yourself survival command
- gamemode.adventure.change.self To make yourself adventure command
- gamemode.toggle.change.self To toggle yourself command
- gamemode.creative.change.player To make targeted player creative command
- gamemode.survival.change.player To make targeted player survival command
- gamemode.adventure.change.player To make targeted player adventure command
- gamemode.toggle.change.player To toggle a targeted player gamemode
- gamemode.sign.create.creative Allows a player to create a creative sign
- gamemode.sign.create.survival Allows a player to create a survival sign
- gamemode.sign.create.toggle Allows a player to create a toggle sign
- gamemode.signs.create.player.creative Allows you to create a player sign
- gamemode.signs.create.player.survival Allows you to create a player sign
- gamemode.signs.create.player.adventure Allows you to create a player sign
- gamemode.sign.interact.creative Allows a player to use the sign
- gamemode.sign.interact.survival Allows a player to use the sign
- gamemode.sign.interact.toggle Allows a player to use the sign
- gamemode.sign.interact.player.creative Allows a player to use the player sign
- gamemode.sign.interact.player.survival Allows a player to use the player sign
- gamemode.sign.interact.player.adventure Allows a player to use the player sign
- gamemode.sign.delete Allows you to break a creative sign
- gamemode.bypass.creative.drop Lets you drop items in creative
- gamemode.bypass.survival.drop Lets you drop items in survival
- gamemode.world.creative If a world is set to creative you will be able to get it
- gamemode.world.survival If a world is set to survival you will be able to get it
- gamemode.recieve.debug If config is not set right and you go through portal it will send it to you
- gamemode.bypass.creative.spawnegg Allows you to use a spawning egg in creative
- gamemode.bypass.creative.egg Allows you to use eggs in creative
- gamemode.bypass.creative.potions Allows you to use potions in creative
- gamemode.bypass.creative.enderpearl Allows you to use enderpearls in creative
- gamemode.bypass.creative.gui Allows you to use gui's in creative
- gamemode.bypass.survival.spawnegg Allows you to use a spawning egg in survival
- gamemode.bypass.survival.egg Allows you to use eggs in survival
- gamemode.bypass.survival.potions Allows you to use potions in survival
- gamemode.bypass.survival.enderpearl Allows you to use enderpearls in survival
- gamemode.bypass.survival.gui Allows you to use gui's in survival
- gamemode.setall Allows you to set all online players gamemode
- gamemode.setdefault Allows you to set the default gamemode of the server
- gamemode.getdefault Allows you to get the default gamemode of the server
- gamemode.bypass.factions.warzone.spawnegg Allows you to use mob spawning eggs in a warzone
- gamemode.bypass.factions.warzone.gui Allows you to use anything that requires a gui in a warzone
- gamemode.bypass.factions.warzone.potions Allows you to use potions in a warzone
- gamemode.bypass.factions.warzone.enderpearl Allows you to use a Ender Pearl in a warzone
- gamemode.bypass.factions.warzone.egg Allows you to throw chicken eggs in a warzone
- gamemode.bypass.factions.safezone.spawnegg Allows you to use mob spawning eggs in a safezone
- gamemode.bypass.factions.safezone.gui Allows you to use anything that requires a gui in a safezone
- gamemode.bypass.factions.safezone.potions Allows you to use potions in a safezone
- gamemode.bypass.factions.safezone.enderpearl Allows you to use a Ender Pearl in a safezone
- gamemode.bypass.factions.safezone.egg Allows you to throw chicken eggs in a safezone
- gamemode.bypass.towny.war.spawnegg Allows you to use mob spawning eggs in a war
- gamemode.bypass.towny.war.gui Allows you to use anything that requires a gui in a war
- gamemode.bypass.towny.war.potions Allows you to use potions in a war
- gamemode.bypass.towny.war.enderpearl Allows you to use a Ender Pearl in a war
- gamemode.bypass.towny.war.egg Allows you to throw chicken eggs in a war
- gamemode.bypass.towny.war.snowball Allows you to throw snow balls in a war
- gamemode.bypass.factions.warzone.snowball Allows you to throw snow balls in a warzone
- gamemode.bypass.factions.safezone.snowball Allows you to throw snow balls in a safezone
- gamemode.bypass.log.join If you don't have this your gamemode will be changed according to the config file.
- Want to see permissions with the commands! Link (not updated to v2.3 yet)
Removed Features
- Removed onLeave because when someone leaves you can't change there gamemode
Change Log
Bugs
Other methods of changing game require the main permission node gamemode.*Fixed in v2.5/gm setall | setdefault dont really workFixed in v2.2When you want to change someone else's gamemode it changes yours or grabs your gm to determine the other player's gamemode.FIxed in v2.0When you use any command on a player it checks if you are online and not the player you are trying to get.Fixed in v2.0Could not pass event PlayerInteractEvent to GameModeChangerFixed in v1.7Players could not eat nor shoot arrowsFixed in v1.7Error on loadFixed in v1.7Could not pass EventFixed in v1.6Fixed Logging ErrorFixed in v1.5Fixed Signs Error Wall signs would not workFixed in v1.4- Bug to Report? Link
To-do List
Add Vault Support for new command /gamemodeAdded in v2.4Add blocks for Snow ballsAdded in v2.4Add new command /gamemode features people will be able to buy creative or survival mode.Added in v2.4Add a new sign features people will be able to buy creative or survival mode from a sign.Added in v2.4Better Sign ProtectionAdded in v2.3Add Faction Support (Warzones and Safezones)Added in v2.3Add Towny Support (Wartime)Added in v2.3Add Console Support(Commands can be used in Console)Added in v2.1Better Chat!Added in v2.0Block Furnace, Crafting Bench, Echantment Table or anything that involves a guiAdded in v2.0Block eggs, spawn eggs, xp potions, potions, enderpearls without permissionAdded in v1.9Add multi-world supportAdded in v1.8Sign SupportAdded in v1.1- Add world-guard support! Coming soon (Don't know when)
- Translate into Spanish, French, Swedish, and German Need Translators!
Download
Donations
- If you like what you see and want to support the development of this plugin and any other plugins i decide to create, please donate by clicking on the donation button below.
@crzykidd
Bahh. It helps if I read :).. lol Throwing is a permission thing.
With that said, when the code loads in BK it still shows 1.6 loading not 1.7. :)
Thanks for such a great addon.
I just downloaded and it still shows as 1.6, however it loads with out an error now. I still can't throw things out in front of me with Q, but shooting seems to work.
Version 1.7 is coming out! Please update to it when it becomes available
@ViscousSummer88
i know look at features and perms. you have to give permission for people to bypass in order to drop items.
I have found a bug with your v1.6 on 1.2.3-R0.2
[INFO] Fetching assPacket for removed entity: CraftItem
This error occurred when i added the plugin, i removed it and it worked.
It does not let you drop items.
@ViscousSummer88
thank you
Changed from InstaMode to this plugin, i actually like this plugin better :D good work!
@ProjectNarna
it's okay you also helped me with a problem I have been having my friends hosts a minecraft server on Linux. So once you told me that I knew that was the problem.
P.S. Thanks for helping me and I put out a plugin thats now supports Linux!
@messageofdeath
Sorry, I was a little to the point, probably came across as a little rude. Java 1.6 is needed for OpenJDK servers (Which is very common on Linux minecraft servers)
But this would be the better plugin if 1.6 was running, if you sent me a copy of the source, I could compile a version for 1.6 if you like?
EDIT: Thanks for adding OpenJDK support. Installing now.
@Damimad
Check the change log and wait for Version 1.5 to be approved and then you have your commands plus a bug fix
@Damimad
I will add them thanks for the reply
My old gamemodechanger used /gc and /gs, can you add those PLEASE!? /GC FOR CREATIVE /GS FOR SURVIVAL! I love you and oranges.
@ProjectNarna
Ok sorry didnt know which java it was will recompile in 1.6
Needs to be recompiled for Java 1.6
@turt2live
Like when you switch worlds you can adjust certain worlds to be creative and survival like on world change
What kind of MultiWorld will you be supporting?