HyperScript
Docs

← All of the Docs HyperGuard

Whether there is such a region HyperGuard

expressionguard region exists <name>HyperGuard

True if WorldGuard has a region of that name, in any world. For asking before making one, or before using a name a player typed; nothing is said in the console when there is none

if guard region exists arg.1:
    send "&cThere is a region called %arg.1% already."
    stop
Guide and examples
command /makezone <name>:
    permission: "zones.admin"
    trigger:
        if guard region exists arg.1:
            send "&cThere is a region called %arg.1% already."
            stop
        create guard region arg.1 from {%player%.a} to {%player%.b}
        send "&aMade %arg.1%."
SyntaxEffect
guard region exists <name>True if WorldGuard has a region of that name, in any world. For asking before making one, or before using a name a player typed; nothing is said in the console when there is none