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.
@messageofdeath
I didn't realise there was any interference?
@xXAlothanXx
@ProjectNarna
I'm going to put on a tutorial on how to use MultiInv without interfering with my plugin.
@xXAlothanXx
This can be achieved through a plugin called MultiInv.
Hii nice plugin but...I think need a Save/Restore Current inventory of survival, Players with Creative can Take any block and when gamemode change to survival this item dont be erased, stay in inventary and late he can put this items in chests without problems :S
You had to change the version things ahead, you just type for 1.2.3
Version:
1.2.3 R3.0 CraftBukkit
1.2.3 R2.0 CraftBukkit
1.2.3 R1.0 CraftBukkit
1.2.3 R0.2 CraftBukkit
1.2.3 R0.1 CraftBukkit
1.1 R7 CraftBukkit
1.1 R6 CraftBukkit
1.1 R4 CraftBukkit
@ProjectNarna
I will add it to Commands and Permissions page
Github is out of date with latest version. The idea of Github is to regularly push code to the server ;)
Also, new permissions need to be highlighted. I could not find them myself because of the previous comment.
@ThisUsernameIsMine No, You can get the help command through /gm other than that no.
Cool plugin!
Does /gm only also change gamemode?
Best regards :-)
@stuntguy3000
I have my plugin on GitHub now. https://github.com/wServers/GameModeChanger
Update coming soon with a config file and world support! Sorry for the long wait for this I have been busy with other things. As in Coding for different plugins, Coding for custom plugins for servers, and I play PS3...
@stuntguy3000
I'm wanting to get my sources up on github. If you know how to get it on there i'll show you
Hey, I was wondering if i could have the source? VIA Github or somthing?
I am interestered in how this works :)
@SkyRanger What's not working the whole plugin/just a small part of it
Edit: I tried it on 1.2.5 R1.0 Should work fine. Keep removing plugins until the error stops and send me the plugin that was causing it so i can put it under conflicts
it wont work anymore.
i have bukkit 1.2.5-R1
so may be its an update necessary.
In fact, If you use this alongside 'Multiinv' It does the inventory switching for you :D?
So, its alright now, Thanks anyway :) Aaron.
Sure that seems fine? So when in /gm cre They do their stuff, have items in their hotbar etc... When they go back to /gm sur the gm cre inventory is cleared? And their old /gm sur inventory given back
Thanks, Aaron.
@CoWs_they_go_moo
I'm not good with database's so i will just clear the inventory how about that?
This plugin is nice, I like it alot, it has enabled me to do things that will really benefit my server but i have a question Is there anyway to stop the carrying of inventory over from /gm cre to /gm sur
because i want the inventorys to be separate ?
Thanks, Aaron :)
@crzykidd
Reloaded the file as 1.7.
Thanks for the reply