Advertisement
Cool_Colton

Untitled

Jul 15th, 2020
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.47 KB | None | 0 0
  1. command /setrank <offline player> <integer>:
  2. permission: set.rank
  3. trigger:
  4. set {rank::%arg 1's uuid%} to arg 2
  5.  
  6. command /chatcolor <text>:
  7. permission: set.color
  8. trigger:
  9. if arg 1 is "Red":
  10. set {chatcolor::%player's uuid%} to "&4"
  11. if arg 1 is "Pink":
  12. set {chatcolor::%player's uuid%} to "&c"
  13. if arg 1 is "Gold":
  14. set {chatcolor::%player's uuid%} to "&6"
  15. if arg 1 is "Yellow":
  16. set {chatcolor::%player's uuid%} to "&e"
  17. if arg 1 is "Green":
  18. set {chatcolor::%player's uuid%} to "&2"
  19. if arg 1 is "Light Green":
  20. set {chatcolor::%player's uuid%} to "&a"
  21. if arg 1 is "Aqua":
  22. set {chatcolor::%player's uuid%} to "&b"
  23. if arg 1 is "Cyan":
  24. set {chatcolor::%player's uuid%} to "&3"
  25. if arg 1 is "Blue":
  26. set {chatcolor::%player's uuid%} to "&9"
  27. if arg 1 is "Light Purple":
  28. set {chatcolor::%player's uuid%} to "&d"
  29. if arg 1 is "White":
  30. set {chatcolor::%player's uuid%} to "&f"
  31. if arg 1 is "Gray":
  32. set {chatcolor::%player's uuid%} to "&7"
  33. if arg 1 is "Dark Gray":
  34. set {chatcolor::%player's uuid%} to "&8"
  35. if arg 1 is "Black":
  36. set {chatcolor::%player's uuid%} to "&0"
  37. if arg 1 is "Off":
  38. set {chatcolor::%player's uuid%} to ""
  39.  
  40. command /nick <text> [<integer>]:
  41. permission: set.nick
  42. trigger:
  43. if {rank::%player's uuid%} is above 2:
  44. if arg 2 is between 0 and 4:
  45. set {nicked::%player's uuid%} to true
  46. set {nicked::rank::%player's uuid%} to arg 2
  47. set {nicked::name::%player's uuid%} to arg 1
  48. send "You have been nicked as &a%{nicked::name::%player's uuid%}%"
  49. if arg 1 is "off":
  50. set {nicked::%player's uuid%} to false
  51. set {nicked::rank::%player's uuid%} to 10000
  52. send "%{nicked::%player's uuid%}%"
  53.  
  54. on chat:
  55. cancel event
  56. if {muted::%player's uuid%} is true:
  57.  
  58. else:
  59. if {nicked::%player's uuid%} is false:
  60. if {rank::%player's uuid%} is 0:
  61. broadcast "&8[&3Default&8] &a%player%: %{chatcolor::%player's uuid%}%%message%"
  62.  
  63. if {rank::%player's uuid%} is 1:
  64. broadcast "&8[&3VIP&8] &a%player%: &f%{chatcolor::%player's uuid%}%%message%"
  65.  
  66. if {rank::%player's uuid%} is 2:
  67. broadcast "&8[&3Legend&8] &a%player%: &f%{chatcolor::%player's uuid%}%%message%"
  68.  
  69. if {rank::%player's uuid%} is 3:
  70. broadcast "&8[&3God&8] &a%player%: &f%{chatcolor::%player's uuid%}%%message%"
  71.  
  72. if {rank::%player's uuid%} is 4:
  73. broadcast "&8[&3Mythical&8] &a%player%: &f%{chatcolor::%player's uuid%}%%message%"
  74.  
  75. if {rank::%player's uuid%} is 5:
  76. broadcast "&8[&1Helper&8] &a%player%: &f%{chatcolor::%player's uuid%}%%message%"
  77.  
  78. if {rank::%player's uuid%} is 6:
  79. broadcast "&8[&3Jr. Mod&8] &a%player%: &f%{chatcolor::%player's uuid%}%%message%"
  80.  
  81. if {rank::%player's uuid%} is 7:
  82. broadcast "&8[Mod&8] &a%player%: &f%{chatcolor::%player's uuid%}%%message%"
  83.  
  84. if {rank::%player's uuid%} is 8:
  85. broadcast "&8[Sr. Mod&8] &a%player%: &f%{chatcolor::%player's uuid%}%%message%"
  86.  
  87. if {rank::%player's uuid%} is 9:
  88. broadcast "&8[&cAdmin&8] &a%player%: &f%{chatcolor::%player's uuid%}%%message%"
  89.  
  90. if {rank::%player's uuid%} is 10:
  91. broadcast "&8[&3Builder&8] &a%player%: &f%{chatcolor::%player's uuid%}%%message%"
  92.  
  93. if {rank::%player's uuid%} is 11:
  94. broadcast "&8[&3Head-Builder&8] &a%player%: &f%{chatcolor::%player's uuid%}%%message%"
  95.  
  96. if {rank::%player's uuid%} is 12:
  97. broadcast "&8[&cDeveloper&8] &a%player%: &f%{chatcolor::%player's uuid%}%%message%"
  98.  
  99. if {rank::%player's uuid%} is 13:
  100. broadcast "&8[&cOwner&8] &a%player%: &b%{chatcolor::%player's uuid%}%%message%"
  101.  
  102. if {nicked::%player's uuid%} is true:
  103. if {nicked::rank::%player's uuid%} is 0:
  104. broadcast "&8[&3Default&8] &a%{nicked::name::%player's uuid%}%: &7%message%"
  105. if {nicked::rank::%player's uuid%} is 1:
  106. broadcast "&8[&3VIP&8] &a%{nicked::name::%player's uuid%}%: &f%{chatcolor::%player's uuid%}%%message%"
  107. if {nicked::rank::%player's uuid%} is 2:
  108. broadcast "&8[&3Legend&8] &a%{nicked::name::%player's uuid%}%: &f%{chatcolor::%player's uuid%}%%message%"
  109. if {nicked::rank::%player's uuid%} is 3:
  110. broadcast "&8[&3God&8] &a%{nicked::name::%player's uuid%}%: &f%{chatcolor::%player's uuid%}%%message%"
  111. if {nicked::rank::%player's uuid%} is 4:
  112. broadcast "&8[&3Mythical&8] &a%{nicked::name::%player's uuid%}%: &f%{chatcolor::%player's uuid%}%%message%"
  113.  
  114. on join:
  115. if {rank::%player's uuid%} is not set:
  116. set {rank::%player's uuid%} to 0
  117. if {nicked::%player's uuid%} is not set:
  118. set {nicked::%player's uuid%} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement