Advertisement
miyasoku

Untitled

Jan 5th, 2020
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. on join:
  2. set {%player%.between} to "%difference between now and {%player%.lastquit}%"
  3. replace all "seconds" and "second" with "秒" in {%player%.between}
  4. replace all "minutes" and "minute" with "分" in {%player%.between}
  5. replace all "hours" and "hour" with "時間" in {%player%.between}
  6. replace all "days" and "day" with "日" in {%player%.between}
  7. replace all "and" with "" in {%player%.between}
  8. replace all " " with "" in {%player%.between}
  9. message "あなたは&b%{%player%.between}%&fオフラインでした!"
  10. message "&6Welcome to &eFreeBuildServer &7%player%"
  11. message "&asending world to &f%player's world%"
  12. teleport player to {Spawn}
  13. wait 1 second
  14. play sound "block.note.bass" at player
  15. on quit:
  16. set {%player%.lastquit} to now
  17. on command "/stop":
  18. loop all players:
  19. set {%loop-player%.lastquit} to now
  20.  
  21. command /setspawn:
  22. trigger:
  23. if player does not have permission "set.spawn":
  24. send "&4[ERROR] &8| &cYou cannot set spawn!"
  25. stop
  26. if player has permission "set.spawn":
  27. send title "&a&lSpawn has successfully been set" with subtitle "&a&lTo your current location"
  28. set {Spawn} to player's location
  29. stop
  30.  
  31. command /spawn:
  32. trigger:
  33. send title "&a&lTping to spawn in" with subtitle "&a&l3"
  34. wait 1 second
  35. send title "&a&lTping to spawn in" with subtitle "&a&l2"
  36. wait 1 second
  37. send title "&a&lTping to spawn in" with subtitle "&a&l1"
  38. wait 1 second
  39. send "&6[Spawn] &7Teleport the Spawn"
  40. teleport player to {Spawn}
  41. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement