I am trying to aim towards constructing a script where i can /jail players and im new to this so i would like a solution to this i've tried both but nothing worked.
on command "/jail":
loop all players:
teleport player to {jail}
cancel event
#command /jail <player>:
# permission: jail.location
# aliases: /jail
# trigger:
# teleport the player to {jail}
# message "&2 %player% &cHas sent you to your potential demise" to player
# message "&c&l Your actions have consequences!!!" to player
# message "&c&l Your actions have consequences!!!" to player
# message "&c&l Your actions have consequences!!!" to player
# message "&6 Jailed, no designated time limit required!" to player
command /jailset:
permission: jail.set
trigger:
set {jail} to location of player
message "&8You have set the jail spawn!"
on command "/jail":
loop all players:
teleport player to {jail}
cancel event
#command /jail <player>:
# permission: jail.location
# aliases: /jail
# trigger:
# teleport the player to {jail}
# message "&2 %player% &cHas sent you to your potential demise" to player
# message "&c&l Your actions have consequences!!!" to player
# message "&c&l Your actions have consequences!!!" to player
# message "&c&l Your actions have consequences!!!" to player
# message "&6 Jailed, no designated time limit required!" to player
command /jailset:
permission: jail.set
trigger:
set {jail} to location of player
message "&8You have set the jail spawn!"