Advertisement
Rikusen0335

Untitled

Jun 17th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. on rightclick on sign:
  2. if line 1 is "parkour":
  3. set line 1 of block to ""
  4. wait a tick
  5. set line 1 of block to "&a&lチェックポイント"
  6. set line 2 of block to "を設定"
  7. stop
  8. if line 1 is "チェックポイント":
  9. make player execute command "/setcheckpoint" as op
  10.  
  11. command /setcheckpoint [<offlineplayer>]:
  12. aliases: /setcp
  13. permission: admin.sk
  14. trigger:
  15. if arg-1 is not set:
  16. set {checkpoint.%uuid of player%.location} to location of player
  17. send "&aチェックポイント&fを設定しました。&7(%location of player%)&r" to player
  18.  
  19. else:
  20. set {checkpoint.%player%.location} to location of player
  21. send "&aチェックポイント&fを設定しました。&7(%location of player%)&r" to player
  22.  
  23. command /checkpoint [<player>]:
  24. permission: sk.checkpoint
  25. aliases: /cp
  26. trigger:
  27. if arg-1 is not set:
  28. if {checkpoint.%uuid of player%.location} is not set:
  29. message "&fあなたは&aチェックポイント&fを設定していません。&r" to player
  30. stop
  31. teleport player to {checkpoint.%uuid of player%.location}
  32. send "&fあなたは&aチェックポイント&fに転移しました。" to player
  33. stop
  34.  
  35.  
  36. else:
  37. if player have permission "admin.sk":
  38. if {checkpoint.%uuid of player%.location} is not set:
  39. message "&fあなたは&aチェックポイント&fを設定していません。&r" to player
  40. stop
  41. else:
  42. teleport arg-1 to {checkpoint.%uuid of player%.location}
  43. send "&fあなたは&aチェックポイント&fに転移しました。" to player
  44. stop
  45. else:
  46. send "&aチェックポイント&fは設定されていません。"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement