HyperScript
Docs

← All of the Docs HyperGuard

Owners and members HyperGuard

expressionowners of guard region <name>HyperGuard

A list of the owners' names

send "&7Owners: &f" + join owners of guard region {_plot} with ", "
expressionmembers of guard region <name>HyperGuard

A list of the members' names

send "&7Members: &f" + join members of guard region {_plot} with ", "
effectadd <who> to guard region <name>HyperGuard

Make a player a member

add arg.1 to guard region {_plot}
effectadd <who> to guard region <name> as ownerHyperGuard

Make a player an owner

add arg.1 to guard region arg.2 as owner
effectremove <who> from guard region <name>HyperGuard

Take a player out, as member and as owner

remove arg.1 from guard region {_plot}
Guide and examples
command /trust <target:player>:
    players only: true
    trigger:
        set {_plot} to item 1 of guard regions of player
        if {_plot} is not set or owners of guard region {_plot} does not contain player.name:
            send "&cStand on a plot you own."
            stop
        add arg.1 to guard region {_plot}
        send "&a%arg.1% can now build on %{_plot}%."

command /plotinfo:
    players only: true
    trigger:
        set {_plot} to item 1 of guard regions of player
        if {_plot} is not set:
            send "&7There is no plot here."
            stop
        send "&7Owners: &f" + join owners of guard region {_plot} with ", "
        send "&7Members: &f" + join members of guard region {_plot} with ", "

command /giveplot <target:player> <plot>:
    permission: "plots.manage"
    trigger:
        add arg.1 to guard region arg.2 as owner
        send "&a%arg.1% now owns %arg.2%."

command /untrust <target>:
    players only: true
    trigger:
        set {_plot} to item 1 of guard regions of player
        if {_plot} is set and owners of guard region {_plot} contains player.name:
            remove arg.1 from guard region {_plot}
            send "&e%arg.1% can no longer build on %{_plot}%."
SyntaxEffect
owners of guard region <name>A list of the owners' names
members of guard region <name>A list of the members' names
add <who> to guard region <name>Make a player a member
add <who> to guard region <name> as ownerMake a player an owner
remove <who> from guard region <name>Take a player out, as member and as owner
  • <who> is player, all players, or a name. A named player may be offline.
  • A region is looked for in the world of the player who caused the trigger first, then in every other world. A name WorldGuard does not know is reported in the console and nothing changes.
  • WorldGuard saves the change itself, a little later, as it does for /rg addmember.