okun1234

prefix

Feb 3rd, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on chat:
  2. cancel event
  3. if {nick::%uuid of player%} is set:
  4. if {prefix::%uuid of player%} is set:
  5. if {suffix::%uuid of player%} is set:
  6. broadcast "%{prefix::%uuid of player%}%%{nick::%uuid of player%}%%{suffix::%uuid of player%}%&a: &r%coloured message%"
  7. else:
  8. broadcast "%{prefix::%uuid of player%}%%{nick::%uuid of player%}%&a: &r%coloured message%"
  9. else:
  10. if {suffix::%uuid of player%} is set:
  11. broadcast "%{nick::%uuid of player%}%%{suffix::%uuid of player%}%&a: &r%coloured message%"
  12. else:
  13. broadcast "%{nick::%uuid of player%}%&a: &r%coloured message%"
  14. else:
  15. if {prefix::%uuid of player%} is set:
  16. if {suffix::%uuid of player%} is set:
  17. broadcast "%{prefix::%uuid of player%}%%player%%{suffix::%uuid of player%}%&a: &r%coloured message%"
  18. else:
  19. broadcast "%{prefix::%uuid of player%}%%player%&a: &r%coloured message%"
  20. else:
  21. if {suffix::%uuid of player%} is set:
  22. broadcast "%player%%{suffix::%uuid of player%}%&a: &r%coloured message%"
  23. else:
  24. broadcast "%player%&a: &r%coloured message%"
  25.  
  26. command /prefix <player> <text>:
  27. permission: server.admin
  28. permission message: &cあなたは権限を持っていません。
  29. usage: &a/prefix <プレイヤー名> <付けたい称号>
  30. trigger:
  31. if arg-1 is set:
  32. if arg-2 is set:
  33. set {prefix::%uuid of arg-1%} to coloured arg-2
  34. send "&7[&a称号&7] &2%arg 1%&aの称号 (前)を""%coloured arg 2%&a""にしました。"
  35.  
  36. command /suffix <player> <text>:
  37. permission: server.admin
  38. permission message: &cあなたは権限を持っていません。
  39. usage: &a/suffix <プレイヤー名> <付けたい称号>
  40. trigger:
  41. if arg-1 is set:
  42. if arg-2 is set:
  43. set {suffix::%uuid of arg-1%} to coloured arg-2
  44. send "&7[&a称号&7] &2%arg 1%&aの称号 (後ろ)を""%coloured arg 2%&a""にしました。"
  45.  
  46. command /clearprefix <player>:
  47. permission: server.admin
  48. permission message: &cあなたは権限を持っていません。
  49. usage: &a/clearprefix <プレイヤー名>
  50. trigger:
  51. if arg-1 is set:
  52. delete {prefix::%uuid of arg-1%}
  53. send "&7[&a称号&7] &2%arg 1%&aの称号 (前)をリセットしました。"
  54.  
  55. command /clearsuffix <player>:
  56. permission: server.admin
  57. permission message: &cあなたは権限を持っていません。
  58. usage: &a/clearsuffix <プレイヤー名>
  59. trigger:
  60. if arg-1 is set:
  61. delete {suffix::%uuid of arg-1%}
  62. send "&7[&a称号&7] &2%arg 1%&aの称号 (後ろ)をリセットしました。"
  63.  
  64. command /punish1 <player>:
  65. permission: server.admin
  66. permission message: &cあなたは権限を持っていません。
  67. usage: &a/punish1 <player>
  68. trigger:
  69. if arg-1 is set:
  70. set {prefix::%uuid of arg-1%} to coloured "&0*&f"
  71. send "&7[&0punish&7] &4%arg 1%&0の違反レベルを1にしました。"
  72.  
  73. command /punish2 <player>:
  74. permission: server.admin
  75. permission message: &cあなたは権限を持っていません。
  76. usage: &a/punish2 <player>
  77. trigger:
  78. if arg-1 is set:
  79. set {prefix::%uuid of arg-1%} to coloured "&0**&f"
  80. send "&7[&0punish&7] &4%arg 1%&0の違反レベルを2にしました。"
  81.  
  82. command /punish3 <player>:
  83. permission: server.admin
  84. permission message: &cあなたは権限を持っていません。
  85. usage: &a/punish3 <player>
  86. trigger:
  87. if arg-1 is set:
  88. set {prefix::%uuid of arg-1%} to coloured "&0***&f"
  89. send "&7[&0punish&7] &4%arg 1%&0の違反レベルを3にしました。"
  90.  
  91. command /punish4 <player>:
  92. permission: server.admin
  93. permission message: &cあなたは権限を持っていません。
  94. usage: &a/punish4 <player>
  95. trigger:
  96. if arg-1 is set:
  97. set {prefix::%uuid of arg-1%} to coloured "&0****&f"
  98. send "&7[&0punish&7] &4%arg 1%&0の違反レベルを4にしました。"
  99.  
  100.  
  101. command /forgivepunish <player>:
  102. permission: server.admin
  103. permission message: &cあなたは権限を持っていません。
  104. usage: &a/forgivepunish <プレイヤー名>
  105. trigger:
  106. if arg-1 is set:
  107. delete {prefix::%uuid of arg-1%}
  108. send "&7[&0punish&7] &4%arg 1%&0違反レベルをリセットしました。"
Advertisement
Add Comment
Please, Sign In to add comment