Advertisement
yuu16092

Untitled

Feb 19th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. command /prefix <player> [<text>]:
  2. permission: tg.admin
  3. permission message: &c権限がありません
  4. trigger:
  5. if arg-1 is not set:
  6. send "{@prefix} &c使い方: &f/prefix <player> <prefix>"
  7. stop
  8. if arg-2 is not set:
  9. send "{@prefix} &c使い方: &f/prefix <player> <prefix>"
  10. stop
  11. if arg-2 is "clear":
  12. clear {prefix.%uuid of arg-1%}
  13. send "{@prefix} &b%arg-1%のprefixをクリアしました"
  14. stop
  15. #else
  16. set {prefix.%uuid of arg-1%} to arg-2
  17. send "{@prefix} &b%arg-1%のprefixを%arg-2%に変更しました"
  18.  
  19. command /suffix <player> [<text>]:
  20. permission: tg.admin
  21. permission message: &c権限がありません
  22. trigger:
  23. if arg-1 is not set:
  24. send "{@prefix} &c使い方: &f/suffix <player> <prefix>"
  25. stop
  26. if arg-2 is not set:
  27. send "{@prefix} &c使い方: &f/suffix <player> <prefix>"
  28. stop
  29. if arg-2 is "clear":
  30. clear {suffix.%uuid of arg-1%}
  31. send "{@prefix} &b%arg-1%のsuffixをクリアしました"
  32. #else
  33. set {suffix.%uuid of arg-1%} to arg-2
  34. send "{@prefix} &b%arg-1%のsuffixを%arg-2%に変更しました"
  35.  
  36. on chat:
  37. cancel event
  38. if {prefix.%uuid of player%} is not set:
  39. if {suffix.%uuid of player%} is not set:
  40. broadcast "%player%& f%message%"
  41. stop
  42. broadcast "%player%%{suffix.%uuid of player%}% &f%message%"
  43. stop
  44. if {suffix.%uuid of player%} is not set:
  45. broadcast "%{prefix.%uuid of player%}%%player% &f%message%"
  46. stop
  47. broadcast "%{prefix.%uuid of player%}%%player%%{suffix.%uuid of player%}% &f%message%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement