Solved jail player problem

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

deez nutz

Member
Nov 22, 2019
13
0
1
20
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!"
 
change the player to arg-1. The person who typed the command will be the only person who will be jailed, not the player you were trying to jail.
I am also going to assume you saw this as an error because you have an argument but you didn't use it.
[doublepost=1574462126,1574462010][/doublepost]also, the whole "on command '/jail':" you don't need, and will actually not work with it
 
Status
Not open for further replies.