WorldGuard Region Commands
WorldGuard Region Commands
"WorldGuard" extension to make the server/a player automatically execute a command when he enters or leaves a WorldGuard region.
How to use this?
this plugin adds some new region flags to worldguard: player-enter-command, player-leave-command, server-enter-command and server-leave-command.
Each of these flags can store multiple commands that are separated with a comma. The player-enter-command and player-leave-command commands will be executed by the player who enters/leaves a region. The server-enter-command and server-leave-command commands will be executed by the server if a player enters/leaves the region.
so simply use the usual WorldGuard region command, like this:
/region flag <region> player-enter-command /list
to make the player execute /list, or
/region flag <region> server-leave-command /say Someone left the region.
to make the server execute the /say command when a player leaves the region.
You can use
/region flag <region> player-leave-command
to clear the value of the flag.
Additionally some substrings will be replaced:
- {player} will be replaced with the name of the player who entered/left the region
- {region} will be replaced with the name of the region the player entered/left
- {comma} will be replaced with a comma as it is normally used to execute multiple commands
Permissions
- none yet
Dependencies
The plugin requires the latest WorldGuard Custom Flags and WorldGuard Region Events.
Click here for some other plugins using WorldGuard Custom Flags.
Problems ?
If you have problems with this plugin read the F.A.Q.. If this did not help you, you can receive help here.
-
View User Profile
-
Send Message
Posted Apr 7, 2013@Vauff
The plugin is up to date and should also work with 1.5.1.
-
View User Profile
-
Send Message
Posted Apr 6, 2013I need this updated ASAP please :)
-
View User Profile
-
Send Message
Posted Mar 29, 2013how do u teleport to a certain region
-
View User Profile
-
Send Message
Posted Mar 23, 2013Update 1.5 Plz...
-
View User Profile
-
Send Message
Posted Mar 12, 2013Is there a way to make it silent, so it doesnt display the command being used in chat ?
-
View User Profile
-
Send Message
Posted Mar 2, 2013How do you make it so you can't grow hungry in spawn?
-
View User Profile
-
Send Message
Posted Feb 21, 2013Great plugin :D I use it for a floating MobArena, where players can jump off. Now with this command they'll die when they jump off.
Thanks!
-
View User Profile
-
Send Message
Posted Feb 17, 2013@Mortiloche
Do you use Multiverse? if yes - same problem like mine. Hop for a Fix :)
-
View User Profile
-
Send Message
Posted Feb 13, 2013@der_mewin
Un problème persiste..
J'active des commandes a des joueurs mais si le joueur effectue : /spawn
La région ne prend pas en compte qu'il a quitter et ne lui enlève pas les commande ajouté.
J'avais effectuer ceci :
ma région est : test
/region flag test server-enter-command /manuadd {player} Builder world
/region flag test server-leave-command /manuadd {player} Default world
Mais lorsque le joueur tape : /spawn ou /f home ou /warp ou /tp la région ne prend pas en compte le départ du joueur :/ comment faire ? merci d'avance.
---English / Anglais
---Problem persists ..
I turn controls a player but if the player performs: / spawn
The region does not realize that he has to leave and not detracting from the command added.
I do this:
my region is: test
/region flag test server-enter-command /manuadd {player} Builder world
/region flag test server-leave-command /manuadd {player} Default world
But when the player types: / spawn or / f home or / warp or / tp region does not include the player's starting :/ how? thank you in advance.
-
View User Profile
-
Send Message
Posted Jan 30, 2013@eightman8
If you have a command to disable flying for a player you can use this and Command Flags to deny flying in the region.
-
View User Profile
-
Send Message
Posted Jan 30, 2013I'm curious about this here plugin.
In effort to create a no fly zone...is it possible to run a disable flight command when a player flies into flagged region?
Then restrict the use of the flight command inside the same region.
Thanks.
-
View User Profile
-
Send Message
Posted Jan 12, 2013@Mixon87
should already be possible with this, and with worldguard.
using this: /region flag <region> player-enter-command /kill
you can set up worldguard to give out damage to players, set it to a high value for insta-death.
/region flag <region> heal-delay 1
/region flag <region> heal-amount -20
-
View User Profile
-
Send Message
Posted Dec 22, 2012would be great to have /kill @p flag when player enters the region, so region may be used as restriction for some areas or adventure maps, very useful.