Advertisement
nyaago50000

Untitled

Mar 30th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 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 /teamleave [<player>]:
  28. aliases: tl
  29. permission: team.leave
  30. permission message: &cError: 権限がありません
  31. executable by: players and console
  32. trigger:
  33. if arg-1 is not set:
  34. set {team.%player%} to unset
  35. send "&dチームから退出しました"
  36. else:
  37. if arg-1 is set:
  38. set {team.%arg-1%} to unset
  39. send "&d%arg-1%をチームから除外しました"
  40.  
  41. command /teamchat [<text>]:
  42. aliases: tc
  43. permission: team.chat
  44. permission message: &cError: 権限がありません
  45. executable by: players and console
  46. trigger:
  47. if arg-1 is not set:
  48. send "&cError: メッセージ若しくは<set/unset>を指定してください"
  49. else:
  50. if arg-1 is "set":
  51. if {team.%player%} is not set:
  52. send "&cError: あなたはどのチームにも所属していません"
  53. else:
  54. if {team.%player%} is red:
  55. set {team.chat.%player%} to red
  56. send "&dTeamChatを固定しました"
  57. else if {team.%player%} is blue:
  58. set {team.chat.%player%} to blue
  59. send "&dTeamChatを固定しました"
  60. else if arg-1 is "unset":
  61. if {team.chat.%player%} is red:
  62. set {team.chat.%player%} to "unset"
  63. send "&dTeamChat固定を解除しました"
  64. else if {team.chat.%player%} is blue:
  65. set {team.chat.%player%} to "unset"
  66. send "&dTeamChat固定を解除しました"
  67. else:
  68. loop all players:
  69. if {team.%loop-player%} is blue:
  70. cancel event
  71. send "{@prefix} %player%&b:&d %message%" to loop-player
  72. else:
  73. loop all players:
  74. if {team.%loop-player%} is blue:
  75. cancel event
  76. send "{@prefix} %player%&b:&d %message%" to loop-player
  77. on chat:
  78. loop all players:
  79. if {team.%loop-player%} is blue:
  80. cancel event
  81. send "{@prefix} %player%&b:&d %message%" to loop-player
  82. if {team.%loop-player%} is red:
  83. cancel event
  84. send "{@prefix} %player%&b:&d %message%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement