kjfalkeiae

Untitled

Jun 9th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. command /spawn:
  2. permission: spawn
  3. trigger:
  4. if {spawn.location} is not set:
  5. message "&7[&6Spawn&7]&cスポーンポイントがありません。"
  6. stop trigger
  7. message "&7[&6Spawn&7]&b5秒後にスポーンポイント<grey>%{spawn.location}%&bにテレポートします"
  8. set {spawntp.%player%} to true
  9. wait 5 seconds
  10. if {spawntp.%player%} is false:
  11. stop trigger
  12. teleport player to {spawn.location}
  13. set {spawntp.%player%} to false
  14. message "&7[&6Spawn&7]&aテレポートが完了しました。"
  15.  
  16. command /setspawn:
  17. permission: spawnset
  18. trigger:
  19. set {spawn.location} to location of player
  20. message "&7[&6Spawn&7]&aスポーンポイントをセットしました: <grey>%location of player%<reset>"
  21.  
  22. on any move:
  23. if {spawntp.%player%} is true:
  24. set {spawntp.%player%} to false
  25. message "&7[&6Spawn&7]&cテレポートの準備中に動いたため、テレポートがキャンセルされました。"
Advertisement
Add Comment
Please, Sign In to add comment