Files
region-check.sk
Code
1 22
region-check.sk
# Region Checker Script
# Checks if the "spawn" region exists in the "spawn" world
# Requires: WorldGuard, Skript
options:
prefix: &6[RegionCheck]&r
command /checkspawnregion:
permission: region.check
aliases: /csr, /checkregion
trigger:
set {_world} to world "spawn"
if {_world} is not set:
send "{@prefix} &cWorld 'spawn' does not exist!" to player
stop
set {_regions::*} to regions at spawn of {_world}
if {_regions::*} contains "spawn":
send "{@prefix} &aRegion 'spawn' exists in world 'spawn'!" to player
else:
send "{@prefix} &cRegion 'spawn' does NOT exist in world 'spawn'!" to player