WorldGuard
Commands
-
/rg pos Set the area. Click on the first point and block on the second point
-
When you have finished setting the position, please enter /rg define [area name]
-
/rg flag [area 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 area.
none = none
/rg list | View the list of areas you created.
/rg addmembers [area name] [player] | Add members for the area.
/rg removemembers [area name] [player] | Remove members in the area.
/rg remove [area name] | Remove the area.
/rg info [area name] | View information for the area.
Recommended for use
It acts like a local protection.
Flag List:
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)
exit: whether to leave the area
item-drop: whether to discard the item in the area
tp: Teleport in the area Fall-damage: Whether or not the area has been damaged
Falling-blocks: Yes, sand, gravel blocks fall from the area
** keep-inventory: Protects your inventory when you die. (deny = protected)**
fly: Flying is not allowed. (Spectator mode and Creative mode excluded)
bow: You cannot pull a bow in this region.
ender_pearl: You cannot throw Ender Pearls in this region.
API
use gamegam\WorldGuardPlugin\WorldData;
use gamegam\WorldGuardPlugin\WorldGuard;
get the name of the world guard I am now
$guard = WorldData::getInstance();
guard->getName(Position);
Make sure I'm currently in World Guard or not
if($guard->getBlockJoin(position)){
example: name."is Join");