GamemodeChanger Rewrite
GMCR - GamemodeChanger Rewrite
Version: 1.0.2
Description
This is the rewrite of my original plugin - GMC - GamemodeChanger.
This plugin is way more lightweight and works with the latest Bukkit builds.
Features
- Easy to use gamemode changing commands with command alias.
- A feature to change your gamemode with signs.
- A specific gamemode for each world you chose though the configuration.
- Supports permissions.
- Supports economy - auto detects Vault if exists.
Sign Usage
Free Sign
- [GameMode]
- Creative\Survival\Adventure\Toggle
Payed Sign
- [BuyGameMode]
- Creative\Survival\Adventure\Toggle
- price(eg. 10)
Radius Sign (PLANNED)
- [RadiusGamemode]
- Creative\Survival\Adventure\Toggle
- Block Radius(eg. 150)
Commands
- /creative [s, gms, surv] <Optional: playername> - Sets <playername>'s gamemode to creative, if no playername entered, sets your own gamemode.
- /survival [c, gmc, crea] <Optional: playername> - Sets <playername>'s gamemode to survival, if no playername entered, sets your own gamemode.
- /adventure [a, gma, adve] <Optional: playername> - Sets <playername>'s gamemode to adventure, if no playername entered, sets your own gamemode.
Specific World Gamemodes
To set you' world specific gamemode edit the config.yml file that will contain the names of the worlds on your server.
Example:
- world: survival
- world_nether: creative
- world_the_end: adventure
Setting the world to "survival" will make the world a survival world.
Setting the world to "creative" will make the world a creative world.
Setting the world to "adventure" will make the world a adventure world.
Permission Nodes
- GMC.* - Makes you able to use all GMC's features.
- GMC.use.creative - Makes you able to use creative signs.
- GMC.use.survival - Makes you able to use survival signs.
- GMC.use.adventure - Makes you able to use adventure signs.
- GMC.use.toggle - Makes you able to use toggle signs.
- GMC.use.* - Makes you able to use every sign.
- GMC.create.creative - Makes you able to create creative signs.
- GMC.create.survival - Makes you able to create survival signs.
- GMC.create.adventure - Makes you able to create adventure signs.
- GMC.create.toggle - Makes you able to create toggle signs.
- GMC.create.* - Makes you able to create all kind of signs.
- GMC.command.creative - Makes you able to use the /creative command.
- GMC.command.survival - Makes you able to use the /survival command.
- GMC.command.adventure - Makes you able to use the /adventure command.
- GMC.command.* - Makes you able to use all the commands.
Metrics and Auto-updating
DISCLAIMER: The auto-updater is enabled by default, to disable it - goto /GamemodeChanger Rewrite/config.yml and change autoUpdate to false.
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
- Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.
Future plans
Old plans from the original project:
Economy support.Better configuration.Being able to set the world to adeventure mode.Being able to set others gamemode with a simple command.
Current future plans:
- * Radius Sign.
I was running into the event problem trying to move between worlds in MultiWorld, and noticed that was specifically fixed in 1.0.3... however the download file for 1.0.3 seems to have 1.0.2 actually in the file. It reports itself as 1.0.2 when the server loads it, and it's obviously still encountering this bug...
98dd0bd0f148e02d706f67fa3862e879 GMCR_v1.0.3.jar
[22:16:38 INFO]: [GamemodeChanger_Rewrite] Enabling GamemodeChanger_Rewrite v1.0.2
Specifically my issue is that when you change worlds, your gamemode gets set according to the world you just left instead of the one you entered.
@Perturbee
Seems like bukkit fails to recognize the target world when you do the following. I'm working on a fix, perhaps I'll change the event from PortalEvent to WorldChange event.
Thanks for the report :)
EDIT: Okay, I've worked abit on this and tested. Should work fine from version 1.0.3, I sent it to upload right now, again - thanks :)
I'm getting an error in my log when changing dimensions in a multiverse world group (using MV NetherPortals).
To clarify with my setup:
Group A: A_world, A_world_nether, A_world_the_end
Group B: B_world, B_world_nether, B_world_the_end
Group A is default and uses it's normal portals.
Group B is added through MultiVerse and the nether and the end are linked with MV NetherPortals (they wouldn't work otherwise).
Moving through portals in Group A works fine.
Moving through portals in Group B generates an error message:
[08:17:28] [Server thread/ERROR]: Could not pass event PlayerPortalEvent to GamemodeChanger_Rewrite v1.0.2
Complete exception details: http://pastebin.com/4m5mEK8f
Everything seems to work on my test server, despite the exception. I'm just curious what's happening and if it breaks something else before I add it to my normal server.
@Perturbee
Hi there, Thanks for the report.
Will fix for the next version :)
Version 1.0.1 thinks it's out of date and downloads... version 1.0.1!
[10:00:43 INFO]: [GamemodeChanger Rewrite] Enabling GamemodeChanger Rewrite v1.0
(...)
[10:00:46 INFO]: [GamemodeChanger Rewrite] About to download a new update: GamemodeChanger Rewrite v1.0.1
(...)
[10:00:46 INFO]: [GamemodeChanger Rewrite] Downloading update: 100% of 33606 bytes.
[10:00:46 INFO]: [GamemodeChanger Rewrite] Finished updating.
[10:00:46 INFO]: [GamemodeChanger Rewrite] GamemodeChanger will be updated on next reload!
[10:00:46 INFO]: [GamemodeChanger Rewrite] Vault found! Enabled economy support!
[10:00:46 INFO]: [GamemodeChanger Rewrite] Successfully loaded!
And surprise, surprise, it does that on every (re)load!
I also have a feature request, shortening of the commands to /c /s /a or any other shorter one?