Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /jail <player> <text>:
- permission: sk.command.jail
- permission message: §cYou do not have permission to execute this command!
- usage: /jail <Player> <Reason>
- trigger:
- if {%arg 1%.jail} is set:
- send "&4&lError &8&l» &c%arg 1%は既に投獄されています!"
- else:
- execute console command "tp %arg 1% -1095.5 4.0 -526.5"
- broadcast "&6&lJail &8&l» &c%arg 1%が%arg 2%の理由で投獄されました。"
- set {%arg 1%.reason} to arg-2
- set {%arg 1%.sender} to player
- send "&a&lHelp &8&l» &e/unjail <Player> <Reason>で出せます。"
- set {%arg 1%.jail} to 1
- on join:
- if {%player%.jail} is set:
- wait 2 ticks
- execute console command "tp %player% -1096 4 -527"
- send "&6&lJail &8&l» &cあなたは%{%player%.sender}%に%{%player%.reason}%の理由で投獄されているため、牢屋にテレポートしました。"
- command /unjail <player> <text>:
- permission: sk.command.unjail
- permission message: §cYou do not have permission to execute this command!
- usage: /unjail <Player> <Reason>
- trigger:
- if {%arg 1%.jail} is set:
- execute console command "tp %arg 1% -1112.5 8.0 -507.5"
- broadcast "&6&lJail &8&l» &c%arg 1%が%arg 2%の理由で出されました。"
- delete {%arg 1%.jail}
- delete {%arg 1%.reason}
- delete {%arg 1%.sender}
- else:
- send "&4&lError &8&l» &c%arg 1%は投獄されていません!"
Add Comment
Please, Sign In to add comment