By continuing to use this site, you agree to the Terms of Service of this website, including usage of cookies.
OK, Don't show this again
- /rg pos Set the zone. Click on the first point and block on the second point
- When you have finished setting the position, please enter /rg define [zone name]
- /rg flag [zone name] [flag] allow/deny,none Please enter double
- The /rg list brings out possible flags.
allow = allow
deny = Disallow - the player will be unable to interact with the type or the zone.
none = none
/rg list | View the list of zones you created.
/rg addmembers [zonename] [player] | Add members for the area.
/rg removemembers [zonename] [player] | Remove members in the area.
/rg remove [zonename] | Remove the area.
/rg info [zonename] | View information for the area.
It acts like a local protection.
build: The player will decide to install/destroy the block according to allow/deny/none.
pvp: a battle between players
tnt: TNT Explosion
invincible: Do not suffer all damage
lava-flow: lava flow
chat: player chat
use: All touches
water-flow: water flow < It will be replaced by water-flow in the next update.
tnt-damage: tnt damage
mob-damage: layer damage to entity
mob-pvp: Damage to entities
fire: Turned off when the player lights up and enters an unallowed zone
mob-spawn: Whether mobs are summoned to disallowed zones (except item entities from next update)
fire-spread: the spread of fire
use gamegam\WorldGuardPlugin\WorldData;
use gamegam\WorldGuardPlugin\WorldGuard;
get the name of the world guard I am now
$guard = WorldData::getInstance();
$name = $guard->getName(Position);
Make sure I'm currently in World Guard or not
if($guard->getBlockJoin(position)){
example: $player->sendMessage($name."is Join");
Reply to review by :
You can leave one review per plugin release, and delete or update your review at any time