Auto Gamemode Changer
Auto Gamemode Changer
Introduction
Do you have a server with both a Creative and Survival world? Do you want to give staff members/donators Creative mode, but want to restrict it in certain worlds?
If you answer yes to either of these questions, you're in the same boat I was in when it came to donators. I created this simple plugin to help restrict gamemode changes for players.
Installation
Simply put the JAR file in your server's plugins directory, /reload, restart the server, or however else you reload your plugins, and you're all set!
Usage
Add a negative permission for changing gamemodes, like -essentials.gamemode (with the "-" directly in front of the permission node), to a group's permissions for certain worlds, and Auto Gamemode Changer takes care of the rest! The user will be put in Survival mode on each world change, so he/she won't be able to go into Creative mode in worlds you wouldn't want them to!
About my Plugins
I always seem to be in a need of something on my server that other plugins either provide along with ton of useless stuff, or just don't provide at all. So, I code my own solutions, and if I think others could use it, I put it up on BukkitDev. That's why even the first version I upload will be stable and work correctly, because I don't put a plugin up on here at all unless it's working to my perfectionist standards.
Also, unless stated otherwise, all my plugins only use the Bukkit API, so they should work on *most* server versions and be pretty update-proof. If a plugin of mine ever breaks with an update, I'd be the first to know.
@Maliron
If you're using PEX, there's a simple command. /pex user <player> add essentials.gamemode <world>
@CadeauCorey117
This plugin does not set people in creative mode. However what you can do is what I mentioned above, except it'd be /pex group <group> add essentials.gamemode <world>
Im trying to setup my server so that the creative world can have anyone in it, but only people with the VIP rank can actually be in creative in that world, is this possible with this plugin?
@LeeTheENTP
Thanks, it's kinda hard to say I guess. It seems like I can't give him access to the gamemode command because then he can go into creative mode in the main world. I need something that extends the permissions of gamemode. So with essentials for example something like -essentials.gamemode.self.Aidenland that way he only has access to the /gamemode command when he's in his world.
I basically still want him to be able to go back to survival in his world if he wants.
@Maliron
The plugin only does one thing: changes the player to survival mode when he changes worlds. Based on your description, it looks like it'd be suitable for your son. Just make sure he has the gamemode permisson in his world, and doesn't doesn't have the agmc.bypass permission for any worlds.
I'm pretty sure this is the plugin I need, but not positive. Basically I have a multiverse server, with the main world in survival. My son has his own world which he can teleport to from his 'room'. I want him to be able to go in and out of survival as he wishes, in his own world, but not in the main world. Will this plugin allow this?
Thanks!
@Grid2192
Of course it does. I've been using it since before I put it on Bukkit.
I think I'll make the gamemode you switch to configurable in the next update.
Will this work with multiverse and 1.7.2 Bukkit? reply ASAP!? Thanks!
@therennon
I'm glad you love it. :)
1 day looking for a plugin, had looked at 20 different.
I thank you for this plugin, fantastic, simple and direct.
You are a genius.
luck
@Nex01
PEX can do this. From the command line (console or in-game):
/pex group <group> add <permission.node> <world>
where <permission.node> is the negative permission node, such as -essentials.gamemode.
It wouldn't hurt to /pex reload after this, especially since inheritance isn't updated until a permissions reload.
Sorry about the late reply; I've been on vacation.
"a group's permissions for certain worlds"
would PEX be able to do this or how can I give groups specific permissions for specific worlds?
@stefan16
Assuming you're using a plugin to have multiple worlds, you should install Multiverse-Inventories to manage per-world inventories.
@legoman519
There is no configuration for it yet - the plugin simply puts users into Survival mode when they change worlds, unless they have the agmc.bypass permission node.
when i download it and reload my server when i go into the folder and open the config with notepad it is blank :( so can someone help me?
@Dailycube
Thanks! It was a simple issue I was having, so I came up with a simple, incredibly-lightweight solution to it.
If it helps others as well, that makes it even better. :D
What else could I add? Configurability of what gamemode to set a user in? Maybe. I'd like to know what you guys need.
This plugin is perfect if you add it to Multiverse-Inventories. well done :D
The first file was uploaded a while ago, and it's awaiting approval. There's a ton of plugins in the queue at the moment, so it might take a day or two.It's all ready for download. :)
This first file I've been testing on my own server and it works great, and only uses the Bukkit API. :)
yes! I need something like this! plz make it xD