I'm running a small (for now) survival server. I don't have a ton of ram on it because it is only a 6 man server (for now). I was at one point trying to run MultiVerse so I could have a redstone foolery world, but the plugin was to resource hungry for my server. I was hoping there was a plugin available that would allow me to execute server commands by the player entering or exiting a region (I use WorldGuard atm). The plugin also needs to understand string variables (For example, player name, group, level) And I'm also hoping this might be a little easier on the server.
I.E. Player enters region A, server executes command "gamemode %PLAYER_NAME% 1". Player exits region A server executes "gamemode %PLAYER_NAME% 0".
If such a thing exists, or someone would be willing to write it for me. Please let me here.
Cheers,
Prat
P.S. If someone is willing to write this for me I will be willing to negotiate compensation.
"So that was my net profit from the operation: 50 chests full of rocks, a big ****ed up hole and some slightly tasteless evening wear" - Ben 'Yahtzee' Crenshaw
You could possibly use the WorldGuard flags 'allowed-cmds' and 'blocked-cmds' creatively to achieve the same effect.
You would have to give everybody the permission to use the /gamemode command on themselves, Block it in the __global__ region; allow it in the creative area you define and make sure to set priority in the creative region >1 to override __global__.
This is assuming that the plugin/permission you use to grant /gamemode can be just restricted to individual use only.
**EDIT** Oh hmm just thought of a flaw; when players leave the region there is no way to auto switch back and they would then be stuck in previous gamemode :/
I'd be looking for some specific creative gamemode helper type plugin.
That was a great idea! Unfortunately your flaw stands true. I need a way to force them in and out of gamemodes.
Rollback Post to RevisionRollBack
"So that was my net profit from the operation: 50 chests full of rocks, a big ****ed up hole and some slightly tasteless evening wear" - Ben 'Yahtzee' Crenshaw
It might be possible to make a simple plugin to achieve this, but not certain on how functional it can be. I can look into the coding to make it, but I do not make any guarantees as to I can make this or not.
Thank you so much! I would really appreciate your effort in trying! Let me know if there is anything I can do!
Rollback Post to RevisionRollBack
"So that was my net profit from the operation: 50 chests full of rocks, a big ****ed up hole and some slightly tasteless evening wear" - Ben 'Yahtzee' Crenshaw
Shouldnt it be easy though? I dont know too much, but arent there things like event listeners of some such that you could use in a way that would wait until the player enters a region made with worldguard/worldedit, and run a command as defined by a flag.
Example: /region flag hospital ccmd manuaddp %player_name% essentials.heal
This would run a console command using groupmanager, and add permission for /heal to the user that enters the region. then the player could use /heal and gain HP while in the hospital. then upon exiting the region/hospital you could make it run another command from the console to remove the ability to use /heal.
Example: /region flag hospital ccmd manudelp %player_name% essentials.heal
you could make it add multiple commands and run them in sequence, and even add player commands or force them to say something such as 'I have slayed the beast and found the treasure. Bow to your new king %player_name%'
the possibilities for this could be really limitless, and open great opportunities for small low ram servers as worldguard is real fast in processing flags. some of the quests you could create..... omg...
I'm running a small (for now) survival server. I don't have a ton of ram on it because it is only a 6 man server (for now). I was at one point trying to run MultiVerse so I could have a redstone foolery world, but the plugin was to resource hungry for my server. I was hoping there was a plugin available that would allow me to execute server commands by the player entering or exiting a region (I use WorldGuard atm). The plugin also needs to understand string variables (For example, player name, group, level) And I'm also hoping this might be a little easier on the server.
I.E. Player enters region A, server executes command "gamemode %PLAYER_NAME% 1". Player exits region A server executes "gamemode %PLAYER_NAME% 0".
If such a thing exists, or someone would be willing to write it for me. Please let me here.
Cheers,
Prat
P.S. If someone is willing to write this for me I will be willing to negotiate compensation.
You could possibly use the WorldGuard flags 'allowed-cmds' and 'blocked-cmds' creatively to achieve the same effect.
You would have to give everybody the permission to use the /gamemode command on themselves, Block it in the __global__ region; allow it in the creative area you define and make sure to set priority in the creative region >1 to override __global__.
This is assuming that the plugin/permission you use to grant /gamemode can be just restricted to individual use only.
**EDIT** Oh hmm just thought of a flaw; when players leave the region there is no way to auto switch back and they would then be stuck in previous gamemode :/
I'd be looking for some specific creative gamemode helper type plugin.
That was a great idea! Unfortunately your flaw stands true. I need a way to force them in and out of gamemodes.
Thank you so much! I would really appreciate your effort in trying! Let me know if there is anything I can do!
Example: /region flag hospital ccmd manuaddp %player_name% essentials.heal
This would run a console command using groupmanager, and add permission for /heal to the user that enters the region. then the player could use /heal and gain HP while in the hospital. then upon exiting the region/hospital you could make it run another command from the console to remove the ability to use /heal.
Example: /region flag hospital ccmd manudelp %player_name% essentials.heal
you could make it add multiple commands and run them in sequence, and even add player commands or force them to say something such as 'I have slayed the beast and found the treasure. Bow to your new king %player_name%'
the possibilities for this could be really limitless, and open great opportunities for small low ram servers as worldguard is real fast in processing flags. some of the quests you could create..... omg...