HyperScript
Docs

← All of the Docs HyperGuard

Where players are HyperGuard

expressionguard regions of <who>HyperGuard

A list of the regions the player is standing in, the highest priority first

set {_regions} to guard regions of player
expressionguard regions at <location>HyperGuard

The same for any place

if guard regions at event's location contains "museum":
    cancel event
    send "&cLook, do not touch."
expressionplayers in guard region <name>HyperGuard

A list of the names of the online players inside

send "&7In the arena: &f" + join players in guard region "arena" with ", "
expressionall guard regionsHyperGuard

The names of every region in the player's world

send "&7Regions here: &f" + join all guard regions with ", "
expressionall guard regions in world <name>HyperGuard

The same for a world you name

send "&7Regions in %arg.1%: &f" + join all guard regions in world arg.1 with ", "
Guide and examples
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."
SyntaxResult
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 regionsThe names of every region in the player's world
all guard regions in world <name>The same for a world you name
  • These are lists like any other: contains, size of, for each, item 1 of all work.
  • A place in no region gives an empty list. The world-wide __global__ region is left out.
  • Region names are not case sensitive, as in WorldGuard.