doru90

Untitled

Nov 19th, 2021 (edited)
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. command /firstspawn <text>:
  2. description: &e使用例&f /firstspawn normal &6or&f first,
  3. usage: &e使用例&f /firstspawn normal &6or&f first.
  4. aliases: /fs
  5. permission: admin
  6. trigger:
  7. if arg is "normal":
  8. set {spawn} to location of player
  9. send "&a&l通常スポーンをここに変更しました"
  10. play sound "entity.player.levelup" with volume 1 and pitch 0 at player
  11. else if arg is "first":
  12. set {firstspawn} to location of player
  13. send "&a&l初期スポーンをここに変更しました"
  14. play sound "entity.player.levelup" with volume 1 and pitch 0 at player
  15. stop
  16.  
  17. on join:
  18. if {first.%player%} is not set:
  19. teleport the player to {firstspawn}
  20. teleport the player to {spawn}
  21. on respawn:
  22. teleport the player to {spawn}
  23.  
  24. on join:
  25. if {first.%player%} is not set:
  26. set join message to "&a&l<<&eFirstJoin&a&l>>&f %player%さんが初めてログインした!"
  27. execute console command "/shot give %player% m4a1"
  28. set {first.%player%} to true
  29. else:
  30. set join message to "&a&l<<&eJoin&a&l>>&f %player%さんがログインした!"
  31. execute console command "/execute @a ~ ~ ~ playsound minecraft:entity.player.levelup ambient @a ~ ~ ~ 1 0"
  32. on quit:
  33. set quit message to "&a&l<<&dQuit&a&l>>&f %player%さんがログアウトしました"
  34.  
  35. command /resetfirst <player>:
  36. permission: admin
  37. trigger:
  38. clear {first.%arg-1%}
  39. play sound "entity.player.levelup" with volume 1 and pitch 0 at player
Add Comment
Please, Sign In to add comment