diff --git a/flagstp.sk b/flagstp.sk index fcb4432..56ca73d 100644 --- a/flagstp.sk +++ b/flagstp.sk @@ -477,6 +477,27 @@ command /flags_forcestop: execute console command "/gamerule keepInventory false" set {game_status} to "end" +command /flags_setspawnerup : + description: Set one of the spawn positions + permission: skript.op + trigger: + if arg-1 < 11: + if arg-1 > 0: + set {spawnup_location::%arg-1%} to player's location + send "Set spawn location %arg-1%" to player + if arg-1 < 0: + send "You must specify a number from 1-10" + if arg-1 > 10: + send "You can only set 10 spawn positions" + +command /flags_listspawnersup: + description: List all spawn positions + permission: skript.op + trigger: + loop 10 times: + send "Spawn point %loop-number%:" to player + send {spawnup_location::%loop-number%} to player + command /flags_setintroloc: permission: skript.op trigger: