expression
guard regions of <who>HyperGuardA list of the regions the player is standing in, the highest priority first
set {_regions} to guard regions of player← All of the Docs HyperGuard
guard regions of <who>HyperGuardA list of the regions the player is standing in, the highest priority first
set {_regions} to guard regions of playerguard regions at <location>HyperGuardThe same for any place
if guard regions at event's location contains "museum":
cancel event
send "&cLook, do not touch."players in guard region <name>HyperGuardA list of the names of the online players inside
send "&7In the arena: &f" + join players in guard region "arena" with ", "all guard regionsHyperGuardThe names of every region in the player's world
send "&7Regions here: &f" + join all guard regions with ", "all guard regions in world <name>HyperGuardThe same for a world you name
send "&7Regions in %arg.1%: &f" + join all guard regions in world arg.1 with ", "command /where:
players only: true
trigger:
set {_regions} to guard regions of player
if size of {_regions} == 0:
send "&7You are in the wild."
else:
send "&7You are in: &f" + join {_regions} with ", "
command /arena:
trigger:
send "&7In the arena: &f" + join players in guard region "arena" with ", "
command /regions [world]:
permission: "regions.list"
trigger:
if arg.1 is set:
send "&7Regions in %arg.1%: &f" + join all guard regions in world arg.1 with ", "
else:
send "&7Regions here: &f" + join all guard regions with ", "
on block break:
if guard regions at event's location contains "museum":
cancel event
send "&cLook, do not touch."
| Syntax | Result |
|---|---|
guard regions of <who> | A list of the regions the player is standing in, the highest priority first |
guard regions at <location> | The same for any place |
players in guard region <name> | A list of the names of the online players inside |
all guard regions | The names of every region in the player's world |
all guard regions in world <name> | The same for a world you name |
contains, size of, for each, item 1 of all work.__global__ region is left out.