Guest User

Untitled

a guest
Aug 4th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.75 KB | None | 0 0
  1. #------------------------------
  2. #
  3. # IsChatLevel Skript by Zongi
  4. #
  5. #------------------------------
  6. #
  7. # Zakazuje sie usuwania wiadomosci o dolaczeniu autora!
  8. #
  9. #------------------------------
  10. #
  11. # Permisje
  12. #
  13. #------------------------------
  14. #
  15. # icl.0 - dostep do koloru czarnego
  16. # icl.1 - dostep do koloru niebieskiego
  17. # icl.2 - dostep do koloru zielonego
  18. # icl.3 - dostep do koloru turkusowego (aqua)
  19. # icl.4 - dostep do koloru czerwonego
  20. # icl.5 - dostep do koloru fioletowego
  21. # icl.6 - dostep do koloru zlotego
  22. # icl.7 - dostep do koloru jasno-szarego
  23. # icl.8 - dostep do koloru szarego
  24. # icl.9 - dostep do koloru jasno-fioletowego
  25. # icl.a - dostep do koloru jasno-zielonego
  26. # icl.b - dostep do koloru blekitnego
  27. # icl.c - dostep do koloru jasno-czerwonego
  28. # icl.d - dostep do koloru rozowego
  29. # icl.e - dostep do koloru jasno-zoltego
  30. # icl.f - dostep do koloru bialego
  31. #
  32. #-----------------------------
  33. #
  34. # Komendy
  35. #
  36. #----------------------------
  37. #
  38. # /ischatlevel lub /icl) - pokazuje dostepne komendy
  39. # /ischatlevel show lub /icl s - pokazuje level wyspy na chacie
  40. # /ischatlevel hide lub /icl h - ukrywa level wyspy na chacie
  41. # /ischatlevel color <znak_koloru> lub /icl c <znak_koloru> - ustawia wyswietlany kolor poziomu
  42. #
  43. #--------------------------
  44. #
  45. # INSTALACJA
  46. #
  47. #--------------------------
  48. #
  49. # 1.Potrzebne beda ci:
  50. # -Plugin ASkyblock
  51. # -Plugin EssentialsChat
  52. # -Plugin PlaceholderAPI
  53. # -Plugin Skelett
  54. # -Plugin Skript
  55. # -Plugin PermissionsEx
  56. #
  57. # 2.W pluginine EssentialsChat przy linijce "format" ustawiamy
  58. # format: '{deluxetags_tag} &r{DISPLAYNAME}&f{MESSAGE}' (uzywam pluginu deluxetags, wiec z przodu jest placeholder {deluxetags_tag}, lecz jest on niepotrzebny)
  59. #
  60. # 3. W pluginie PlaceholderAPI musimy pobrac dodatek ASkyblock, wiec po wejsciu na serwer wpisujemy
  61. # /papi ecloud download askyblock
  62. #
  63. # 4. W configu pluginu Skelett przy linijce "placeholderapi:" namieniamy "false" na "true"
  64. #
  65. # 5. W permissionsex ustawiamy syffixy (kolor pisania) i ustawiamy mozliwe ustawienia koloru dla danych rang(permisje wyzej)
  66. #
  67. # 6. Po restarcie wszystko powinno smigac :)
  68. on load:
  69. set {Prefix} to "&F[&6&lICL&f]&r "
  70. broadcast "%{Prefix}% &7Przeladowano skrypt /ischatlevel"
  71.  
  72. #every second:
  73. #
  74. #
  75. command /ischatlevel [<text>] [<text>]:
  76. executable by: players
  77. aliases: /icl
  78. trigger:
  79. set {wykonawca} to "%player%"
  80. if arg 1 is "hide" or "h":
  81. set {Lv.%{wykonawca}%} to "false"
  82. send "%{Prefix}%&7Poziom wyspy na chacie &6&lukryty"
  83. else:
  84. if arg 1 is "show" or "s":
  85. set {Lv.%player%} to "true"
  86. send "%{Prefix}%&7Poziom wyspy na chacie &6&lpokazany"
  87. else:
  88. if arg 1 is "color" or "c":
  89. if arg 2 is not set:
  90. send "%{Prefix}%&7Wybierz znak koloru, np. &4&l4&7, &6&l6"
  91. else:
  92. if arg 2 is "0":
  93. if player has permission "icl.0":
  94. send "%{Prefix}%&7Ustawiono kolor na &%arg 2%&l%arg 2%&f(Czarny)"
  95. set {c.%{wykonawca}%} to "&0"
  96. else:
  97. send "%{Prefix}%&c&lnie masz uprawnien do ustawienia koloru &%arg 2%&l%arg 2%&c&l(czarnego) !"
  98. if arg 2 is "1":
  99. if player has permission "icl.1":
  100. send "%{Prefix}%&7Ustawiono kolor na &%arg 2%&l%arg 2%"
  101. set {c.%{wykonawca}%} to "&1"
  102. else:
  103. send "%{Prefix}%&c&lnie masz uprawnien do ustawienia koloru &%arg 2%&l%arg 2%&c&l !"
  104. if arg 2 is "2":
  105. if player has permission "icl.2":
  106. send "%{Prefix}%&7Ustawiono kolor na &%arg 2%&l%arg 2%"
  107. set {c.%{wykonawca}%} to "&2"
  108. else:
  109. send "%{Prefix}%&c&lnie masz uprawnien do ustawienia koloru &%arg 2%&l%arg 2%&c&l !"
  110. if arg 2 is "3":
  111. if player has permission "icl.3":
  112. send "%{Prefix}%&7Ustawiono kolor na &%arg 2%&l%arg 2%"
  113. set {c.%{wykonawca}%} to "&3"
  114. else:
  115. send "%{Prefix}%&c&lnie masz uprawnien do ustawienia koloru &%arg 2%&l%arg 2%&c&l !"
  116. if arg 2 is "4":
  117. if player has permission "icl.4":
  118. send "%{Prefix}%&7Ustawiono kolor na &%arg 2%&l%arg 2%"
  119. set {c.%{wykonawca}%} to "&4"
  120. else:
  121. send "%{Prefix}%&c&lnie masz uprawnien do ustawienia koloru &%arg 2%&l%arg 2%&c&l !"
  122. if arg 2 is "5":
  123. if player has permission "icl.5":
  124. send "%{Prefix}%&7Ustawiono kolor na &%arg 2%&l%arg 2%"
  125. set {c.%{wykonawca}%} to "&5"
  126. else:
  127. send "%{Prefix}%&c&lnie masz uprawnien do ustawienia koloru &%arg 2%&l%arg 2%&c&l !"
  128. if arg 2 is "6":
  129. if player has permission "icl.6":
  130. send "%{Prefix}%&7Ustawiono kolor na &%arg 2%&l%arg 2%"
  131. set {c.%{wykonawca}%} to "&6"
  132. else:
  133. send "%{Prefix}%&c&lnie masz uprawnien do ustawienia koloru &%arg 2%&l%arg 2%&c&l !"
  134. if arg 2 is "7":
  135. if player has permission "icl.7":
  136. send "%{Prefix}%&7Ustawiono kolor na &%arg 2%&l%arg 2%"
  137. set {c.%{wykonawca}%} to "&7"
  138. else:
  139. send "%{Prefix}%&c&lnie masz uprawnien do ustawienia koloru &%arg 2%&l%arg 2%&c&l !"
  140. if arg 2 is "8":
  141. if player has permission "icl.8":
  142. send "%{Prefix}%&7Ustawiono kolor na &%arg 2%&l%arg 2%"
  143. set {c.%{wykonawca}%} to "&8"
  144. else:
  145. send "%{Prefix}%&c&lnie masz uprawnien do ustawienia koloru &%arg 2%&l%arg 2%&c&l !"
  146. if arg 2 is "9":
  147. if player has permission "icl.9":
  148. send "%{Prefix}%&7Ustawiono kolor na &%arg 2%&l%arg 2%"
  149. set {c.%{wykonawca}%} to "&9"
  150. else:
  151. send "%{Prefix}%&c&lnie masz uprawnien do ustawienia koloru &%arg 2%&l%arg 2%&c&l !"
  152. if arg 2 is "a":
  153. if player has permission "icl.a":
  154. send "%{Prefix}%&7Ustawiono kolor na &%arg 2%&l%arg 2%"
  155. set {c.%{wykonawca}%} to "&a"
  156. else:
  157. send "%{Prefix}%&c&lnie masz uprawnien do ustawienia koloru &%arg 2%&l%arg 2%&c&l !"
  158. if arg 2 is "b":
  159. if player has permission "icl.b":
  160. send "%{Prefix}%&7Ustawiono kolor na &%arg 2%&l%arg 2%"
  161. set {c.%{wykonawca}%} to "&b"
  162. else:
  163. send "%{Prefix}%&c&lnie masz uprawnien do ustawienia koloru &%arg 2%&l%arg 2%&c&l !"
  164. if arg 2 is "c":
  165. if player has permission "icl.c":
  166. send "%{Prefix}%&7Ustawiono kolor na &%arg 2%&l%arg 2%"
  167. set {c.%{wykonawca}%} to "&c"
  168. else:
  169. send "%{Prefix}%&c&lnie masz uprawnien do ustawienia koloru &%arg 2%&l%arg 2%&c&l !"
  170. if arg 2 is "d":
  171. if player has permission "icl.d":
  172. send "%{Prefix}%&7Ustawiono kolor na &%arg 2%&l%arg 2%"
  173. set {c.%{wykonawca}%} to "&d"
  174. else:
  175. send "%{Prefix}%&c&lnie masz uprawnien do ustawienia koloru &%arg 2%&l%arg 2%&c&l !"
  176. if arg 2 is "e":
  177. if player has permission "icl.e":
  178. send "%{Prefix}%&7Ustawiono kolor na &%arg 2%&l%arg 2%"
  179. set {c.%{wykonawca}%} to "&e"
  180. else:
  181. send "%{Prefix}%&c&lnie masz uprawnien do ustawienia koloru &%arg 2%&l%arg 2%&c&l !"
  182. if arg 2 is "f":
  183. if player has permission "icl.f":
  184. send "%{Prefix}%&7Ustawiono kolor na &%arg 2%&l%arg 2%"
  185. set {c.%{wykonawca}%} to "&f"
  186. else:
  187. send "%{Prefix}%&c&lnie masz uprawnien do ustawienia koloru &%arg 2%&l%arg 2%&c&l !"
  188. else:
  189. send "%{Prefix}%&7Poprawne Uzycie: &c/ischatlevel show|hide|color"
  190. send "&7Lub &c/icl s|h|c"
  191. on join:
  192. set {gracz} to "%player%"
  193. if {gracz} is "zongi":
  194. broadcast "%{Prefix}%&e&lZongi &7- Autor Skryptu /iscatlevel Dolaczyl/a do gry!"
  195. on chat:
  196. set {poziom.fh.%{wykonawca}%} to placeholder "%%askyblock_level%%" from player
  197. if {Lv.%{wykonawca}%} is "true":
  198. set {sufix.lv.%{wykonawca}%} to " &f[&7Lvl&f:%{c.%{wykonawca}%}%&l% {poziom.fh.%{wykonawca}%}%&f]&r"
  199. else:
  200. set {sufix.lv.%{wykonawca}%} to "&r"
  201. set message to "%{sufix.lv.%player%}%:%coloured player's suffix% %message%"
Add Comment
Please, Sign In to add comment