Add new commands
parent
892cd54bb3
commit
62a8ef170d
21
flagstp.sk
21
flagstp.sk
|
@ -477,6 +477,27 @@ command /flags_forcestop:
|
|||
execute console command "/gamerule keepInventory false"
|
||||
set {game_status} to "end"
|
||||
|
||||
command /flags_setspawnerup <number>:
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue