kjfalkeiae

Untitled

Jul 29th, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #{team}: チーム変数
  2. on crafting of banner:
  3. cancel event
  4. on rightclick on banner:
  5. if {team.%player%} is "red":
  6. set block at event-location to red banner
  7. if {team.%player%} is "blue":
  8. set block at event-location to blue banner
  9. if {team.%player%} is "yellow":
  10. set block at event-location to yellow banner
  11. if {team.%player%} is "green":
  12. set block at event-location to green banner
  13. command /jointeam [<text>] [<player>]:
  14. permission: sk.command.team
  15. trigger:
  16. if arg-1 is not "yellow" or "red" or "blue" or "green":
  17. send "&c使用法: /jointeam <team> <player>"
  18. stop
  19. else:
  20. set {team.%arg-2%} to arg-1
  21. command "/scoreboard teams join %arg-1% %arg-2%"
  22. if arg-1 is "red":
  23. command "/ne player %arg-2% prefix &c"
  24. if arg-1 is "blue":
  25. command "/ne player %arg-2% prefix &9"
  26. if arg-1 is "yellow":
  27. command "/ne player %arg-2% prefix &e"
  28. if arg-1 is "green":
  29. command "/ne player %arg-2% prefix &a"
Advertisement
Add Comment
Please, Sign In to add comment