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.
I was trying to use this plugin as it's exactly what I was looking for (a gamemode changer with a sign) but it isn't working for me. I put a good majority of the permissions in the default group but I can't access /gc due to it saying I don't have permission (I'm in the highest level of the groups) and I can only use it when I OP myself. /gamemode has also stopped working; when I tried to use that instead it told me I didn't have Vault (I do). When I place a sign, it doesn't work either, not even when I'm OP.
Please help!
Does this have a feature that blocks players in creative mode from dropping items ala GMNP?
Is this not working for anybody else? :/ I seem to always get the invalid plugin.yml when i start up :3 P.S I might be able to do german translation :)
Hi! Still need a Swedish translator? I can help you! just send what i am going to translate.
Joarc
@hammale
thanks man
nice mate :)
@DQone
I am aware of this. Fix is on the way. I don't recommend using it right now. Because they need the perm that allows you to change perm with the command. Fix is on the way. I'm very busy.
Hi, I'm trying to use this with two worlds. One creative one survival. When players move between worlds they get a message that their gamemode has been changed but it hasn't. I've added both worlds to the config and set one as survival and one as creative. Users have the world change permissions and the main permission.
Am I doing anything wrong?
@Apecengo
@iku450
@Wombosvideo
Try now
@messageofdeath
Same now
@Wombosvideo
@iku450
Please try the link now.
Hey I can help you translate to spanish but I can't go to the application link, it says I don't have permissions to access to it.
I DON'T CAN VISIT THE LINK THAT YOU LINK ON THE TOP OF THE PAGE Meaning Translator Bullshit
@ProjectNarna
Oh All the new permission nodes on on the main page where these comments are. The Commands and Permissions Page is not done yet.
@messageofdeath
Okay, will do. How have the permission nodes changed with v2.2? I've been holding off until you update the documentation.
@ProjectNarna
Well try v2.2 A rewirte of all the code
@messageofdeath
No, It is *NOT* in the worlds list.
@ProjectNarna
Are you sure the world that makes a NPE is in the worlds list. Because if it is in the list and not made under worlds in will return a NPE. It is a config error. (I could not recreate the problem I think it is a config error)
@messageofdeath
You are. MultiInv deals with split inventories. i.e, I want a separate inventory for creative + survival on world. MultiInv takes care of switching the inventories when a player changes gamemode. It also handles it for multi-world.
There is a bug in 2.1, If a world does not exist in the config, a NPE is thrown when a player changes world event. I doubt you need the error directly? If you do, I will reply with it when I next produce it.
@ProjectNarna
MultiInv I believe can change your gamemode or does it or am I just getting it wrong?