Advertisement
nyaago50000

Untitled

Mar 30th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. options:
  2. prefix: &d[Team]&a
  3.  
  4. command /teamjoin <text> [<player>]:
  5. aliases: tj
  6. permission: team.join
  7. permission message: &cError: 権限がありません
  8. executable by: players and console
  9. trigger:
  10. if arg-1 is not set:
  11. send "&cError: チームを選択してください (red or blue)"
  12. else:
  13. if arg-2 is not set:
  14. if arg-1 is "red":
  15. set {team.%player%} to red
  16. send "&cRed&dチームに参加しました"
  17. else if arg-1 is "blue":
  18. set {team.%player%} to blue
  19. send "&9Blue&dチームに参加しました"
  20. else:
  21. if arg-2 is set:
  22. if arg-1 is "red":
  23. set {team.%arg-2%} to red
  24. else if arg-1 is "blue":
  25. set {team.%arg-2%} to blue
  26.  
  27. command /teamchat [<text>]:
  28. aliases: tc
  29. permission: team.chat
  30. permission message: &cError: 権限がありません
  31. executable by: players and console
  32. trigger:
  33. if arg-1 is not set:
  34. send "&cError: メッセージ若しくは<set/unset>を指定してください"
  35. else:
  36. if arg-1 is "set":
  37. if {team.%player%} is not set:
  38. send "&cError: あなたはどのチームにも所属していません"
  39. else:
  40. if {team.%player%} is red:
  41. set {team.chat.%player%} to red
  42. send "&dTeamChatを固定しました"
  43. else if {team.%player%} is blue:
  44. set {team.chat.%player%} to blue
  45. send "&dTeamChatを固定しました"
  46. else if arg-1 is "unset":
  47. if {team.chat.%player%} is red:
  48. set {team.chat.%player%} to "unset"
  49. send "&dTeamChat固定を解除しました"
  50. else if {team.chat.%player%} is blue:
  51. set {team.chat.%player%} to "unset"
  52. send "&dTeamChat固定を解除しました"
  53.  
  54. on chat:
  55. loop all players:
  56. if {team.chat.%loop-player%} is blue:
  57. cancel event
  58. send "{@prefix} %player%&b:&d %message%" to loop-player
  59. if {team.chat.%loop-player%} is red:
  60. cancel event
  61. send "{@prefix} %player%&b:&d %message%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement