Advertisement
WolfTM_

Skript Error

Jul 31st, 2021
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.22 KB | None | 0 0
  1. options:
  2. # Niet Aankomen
  3. build: B349-1.17.X
  4. prefix: &c&lCBNL &8➤&r
  5. deaths: &7&l☠ &8➤&r
  6. joined: &2&l✔ &8➤&r
  7. quited: &4&l❌ &8➤&r
  8. chatFormatter: true
  9. chatformat: "&8| Gamer |&7 %name of player% &8» &7%message%"
  10. chatformat-admin: "&b| Admin |&7 %name of player% &8» &7%message%"
  11. chatformat-dev: "&c| Dev |&7 %name of player% &8» &7%message%"
  12. chatformat-twitchsub: "&5| Sub |&7 %name of player% &8» &7%message%"
  13.  
  14. # Version
  15. # Voor ander script
  16. command /cbnl-version:
  17. trigger:
  18. send "{@prefix} &7Je gebruikt op dit moment versie: &3{@build}"
  19. stop
  20.  
  21. # C Teams
  22. command /cteam [<offline player>] [<text>]:
  23. trigger:
  24. if executor is "Douwsky":
  25. if arg-1 is set:
  26. if arg-2 is "tsub":
  27. execute console command "team join twitchsub %arg-1%"
  28. send "{@prefix} &e%arg-1% &7is &2toegevoegd &7aan de &5TwitchSub &7groep. &a&oOK"
  29. send "{@prefix} &7Je bent &2toegevoegd &7aan de &5TwitchSub &7groep door &e%executor%&7." to arg-1
  30. set tablist name of arg-1 to "&5| Sub | &7%player%"
  31. set the display name of arg-1 to "&7%arg-1%"
  32. set {twitchsubt::%arg-1%} to true
  33. stop
  34. if arg-2 is "live":
  35. send "{@prefix} &e%arg-1% &7is &2toegevoegd &7aan de &6LIVE &7groep. &a&oOK"
  36. send "{@prefix} &7Je bent &2toegevoegd &7aan de &6LIVE &7groep door &e%executor%&7." to arg-1
  37. set tablist name of arg-1 to "&6| LIVE | &7%player%"
  38. set the display name of arg-1 to "&7%arg-1%"
  39. stop
  40. if arg-1 is set:
  41. if arg-2 is "rsub":
  42. execute console command "team leave %arg-1%"
  43. send "{@prefix} &e%arg-1% &7is &4verwijderd &7van de &5TwitchSub &7groep. &a&oOK"
  44. send "{@prefix} &7Je bent &4verwijderd &7van de &5TwitchSub &7groep door &e%executor%&7." to arg-1
  45. set tablist name of arg-1 to "&8| Gamer | &7%player%"
  46. set the display name of arg-1 to "&7%arg-1%"
  47. set {twitchsubt::%arg-1%} to false
  48. stop
  49. if arg-1 is set:
  50. if arg-2 is "rlive":
  51. send "{@prefix} &e%arg-1% &7is &4verwijderd &7van de &6Live &7groep. &a&oOK"
  52. send "{@prefix} &7Je bent &4verwijderd &7van de &6Live &7groep door &e%executor%&7." to arg-1
  53. set tablist name of arg-1 to "&8| Gamer | &7%player%"
  54. set the display name of arg-1 to "&7%arg-1%"
  55. stop
  56. if arg-1 is set:
  57. if arg 2 is not set:
  58. message "{@prefix} &7Team Argument niet gevonden of onjuist. &4&oFAIL"
  59. stop
  60. if arg 1 is not set:
  61. send "{@prefix} &7Speler & Team Argument niet gevonden of onjuist. &4&oFAIL"
  62. stop
  63. else:
  64. send "{@prefix} &cU kan dit commando niet uitvoeren &7(.nopermission .noOP)"
  65. stop
  66. if executor is "WolfTM":
  67. if arg-1 is set:
  68. if arg-2 is "tsub":
  69. execute console command "team join twitchsub %arg-1%"
  70. send "{@prefix} &e%arg-1% &7is &2toegevoegd &7aan de &5TwitchSub &7groep. &a&oOK"
  71. send "{@prefix} &7Je bent &2toegevoegd &7aan de &5TwitchSub &7groep door &e%executor%&7." to arg-1
  72. set tablist name of arg-1 to "&5| Sub | &7%player%"
  73. set the display name of arg-1 to "&7%arg-1%"
  74. set {twitchsubt::%arg-1%} to true
  75. stop
  76. if arg-2 is "live":
  77. send "{@prefix} &e%arg-1% &7is &2toegevoegd &7aan de &6LIVE &7groep. &a&oOK"
  78. send "{@prefix} &7Je bent &2toegevoegd &7aan de &6LIVE &7groep door &e%executor%&7." to arg-1
  79. set tablist name of arg-1 to "&6| LIVE | &7%player%"
  80. set the display name of arg-1 to "&7%arg-1%"
  81. stop
  82. if arg-1 is set:
  83. if arg-2 is "rsub":
  84. execute console command "team leave %arg-1%"
  85. send "{@prefix} &e%arg-1% &7is &4verwijderd &7van de &5TwitchSub &7groep. &a&oOK"
  86. send "{@prefix} &7Je bent &4verwijderd &7van de &5TwitchSub &7groep door &e%executor%&7." to arg-1
  87. set tablist name of arg-1 to "&8| Gamer | &7%player%"
  88. set the display name of arg-1 to "&7%arg-1%"
  89. set {twitchsubt::%arg-1%} to false
  90. stop
  91. if arg-1 is set:
  92. if arg-2 is "rlive":
  93. send "{@prefix} &e%arg-1% &7is &4verwijderd &7van de &6Live &7groep. &a&oOK"
  94. send "{@prefix} &7Je bent &4verwijderd &7van de &6Live &7groep door &e%executor%&7." to arg-1
  95. set tablist name of arg-1 to "&8| Gamer | &7%player%"
  96. set the display name of arg-1 to "&7%arg-1%"
  97. stop
  98. if arg-1 is set:
  99. if arg 2 is not set:
  100. message "{@prefix} &7Team Argument niet gevonden of onjuist. &4&oFAIL"
  101. stop
  102. if arg 1 is not set:
  103. send "{@prefix} &7Speler & Team Argument niet gevonden of onjuist. &4&oFAIL"
  104. stop
  105. else:
  106. send "{@prefix} &cU kan dit commando niet uitvoeren &7(.nopermission .noOP)"
  107. stop
  108. if executor is "Technoviking_":
  109. if arg-1 is set:
  110. if arg-2 is "tsub":
  111. execute console command "team join twitchsub %arg-1%"
  112. send "{@prefix} &e%arg-1% &7is &2toegevoegd &7aan de &5TwitchSub &7groep. &a&oOK"
  113. send "{@prefix} &7Je bent &2toegevoegd &7aan de &5TwitchSub &7groep door &e%executor%&7." to arg-1
  114. set tablist name of arg-1 to "&5| Sub | &7%player%"
  115. set the display name of arg-1 to "&7%arg-1%"
  116. set {twitchsubt::%arg-1%} to true
  117. stop
  118. if arg-2 is "live":
  119. send "{@prefix} &e%arg-1% &7is &2toegevoegd &7aan de &6LIVE &7groep. &a&oOK"
  120. send "{@prefix} &7Je bent &2toegevoegd &7aan de &6LIVE &7groep door &e%executor%&7." to arg-1
  121. set tablist name of arg-1 to "&6| LIVE | &7%player%"
  122. set the display name of arg-1 to "&7%arg-1%"
  123. stop
  124. if arg-1 is set:
  125. if arg-2 is "rsub":
  126. execute console command "team leave %arg-1%"
  127. send "{@prefix} &e%arg-1% &7is &4verwijderd &7van de &5TwitchSub &7groep. &a&oOK"
  128. send "{@prefix} &7Je bent &4verwijderd &7van de &5TwitchSub &7groep door &e%executor%&7." to arg-1
  129. set tablist name of arg-1 to "&8| Gamer | &7%player%"
  130. set the display name of arg-1 to "&7%arg-1%"
  131. set {twitchsubt::%arg-1%} to false
  132. stop
  133. if arg-1 is set:
  134. if arg-2 is "rlive":
  135. send "{@prefix} &e%arg-1% &7is &4verwijderd &7van de &6Live &7groep. &a&oOK"
  136. send "{@prefix} &7Je bent &4verwijderd &7van de &6Live &7groep door &e%executor%&7." to arg-1
  137. set tablist name of arg-1 to "&8| Gamer | &7%player%"
  138. set the display name of arg-1 to "&7%arg-1%"
  139. stop
  140. if arg-1 is set:
  141. if arg 2 is not set:
  142. message "{@prefix} &7Team Argument niet gevonden of onjuist. &4&oFAIL"
  143. stop
  144. if arg 1 is not set:
  145. send "{@prefix} &7Speler & Team Argument niet gevonden of onjuist. &4&oFAIL"
  146. stop
  147. else:
  148. send "{@prefix} &cU kan dit commando niet uitvoeren &7(.nopermission .noOP)"
  149. stop
  150.  
  151. # Lister
  152. command /staff:
  153. trigger:
  154. send "{@prefix}"
  155. send "{@prefix} &e&lStaff"
  156. send "{@prefix}"
  157. send "{@prefix} &bAdmins&7:"
  158. send "{@prefix} &7&oDouwsky&7, &7&oTechnoviking_"
  159. send "{@prefix}"
  160. send "{@prefix} &cDeveloper&7:"
  161. send "{@prefix} &7&oWolfTM"
  162. send "{@prefix}"
  163. stop
  164.  
  165. # Granted & Revoker OP
  166. command /perms [<player>] [<text>] [<text>]:
  167. trigger:
  168. if executor is "WolfTM":
  169. if arg-1 is set:
  170. if arg-2 is "grant":
  171. if arg-3 is "All":
  172. send "{@prefix} &7Granted permission &c&lALL &7to &e%arg-1%"
  173. execute console command "op %arg-1%"
  174. stop
  175. if arg-2 is "revoke":
  176. if arg-3 is "All":
  177. send "{@prefix} &7Revoked permission &c&lALL &7to &e%arg-1%"
  178. execute console command "deop %arg-1%"
  179. stop
  180. if arg-3 is not set:
  181. send "{@prefix} &7Granting Permission is not set!"
  182. stop
  183. if arg-2 is not set:
  184. send "{@prefix} &7Give or Revoke is not set!"
  185. stop
  186. if arg-1 is not set:
  187. send "{@prefix} &7Player & Granting Permission is not set!"
  188. send "{@prefix} &eUse: &7/perms [User] [Grant/Revoke] [Perm]"
  189. stop
  190. if executor is "Douwsky":
  191. if arg-1 is set:
  192. if arg-2 is "grant":
  193. if arg-3 is "All":
  194. send "{@prefix} &7Granted permission &c&lALL &7to &e%arg-1%"
  195. execute console command "op %arg-1%"
  196. stop
  197. if arg-2 is "revoke":
  198. if arg-3 is "All":
  199. send "{@prefix} &7Revoked permission &c&lALL &7to &e%arg-1%"
  200. execute console command "deop %arg-1%"
  201. stop
  202. if arg-3 is not set:
  203. send "{@prefix} &7Granting Permission is not set!"
  204. stop
  205. if arg-2 is not set:
  206. send "{@prefix} &7Give or Revoke is not set!"
  207. stop
  208. if arg-1 is not set:
  209. send "{@prefix} &7Player & Granting Permission is not set!"
  210. send "{@prefix} &eUse: &7/grant [User] [Grant/Revoke] [Perm]"
  211. stop
  212. else:
  213. send "{@prefix} &cU kan dit commando niet uitvoeren &7(.nopermission .noOP)"
  214. stop
  215.  
  216. command /team-setup:
  217. trigger:
  218. if executor is "WolfTM":
  219. send "{@prefix} &7Setup &6Activated&7!"
  220. send "{@prefix} &7Setup &6Activated &7by %executor%!" to console
  221. execute console command "team add dev"
  222. wait 1 second
  223. execute console command "team modify dev color red"
  224. wait 1 second
  225. execute console command "team join dev WolfTM"
  226. wait 1 second
  227. execute console command "team add admin"
  228. wait 1 second
  229. execute console command "team modify admin color aqua"
  230. wait 1 second
  231. execute console command "team join admin Douwsky"
  232. wait 1 second
  233. execute console command "team join admin Technoviking_"
  234. wait 1 second
  235. execute console command "team add twitchsub"
  236. wait 1 second
  237. execute console command "team modify twitchsub color dark_purple"
  238. wait 1 second
  239. send "{@prefix} &7Setup &aDONE!"
  240. send "{@prefix} &7Setup &aDONE&7 by %executor%!" to console
  241. stop
  242. else:
  243. send "{@prefix} &cU kan dit commando niet uitvoeren &7(.nopermission .noOP)"
  244. stop
  245.  
  246. # On Chat
  247. on chat:
  248. if player is "Douwsky":
  249. cancel event
  250. broadcast colored {@chatformat-admin}
  251. stop
  252. if player is "Technoviking_":
  253. cancel event
  254. broadcast colored {@chatformat-admin}
  255. stop
  256. if player is "WolfTM":
  257. cancel event
  258. broadcast colored {@chatformat-dev}
  259. stop
  260. if {twitchsubt::%player%} is true:
  261. cancel event
  262. broadcast colored {@chatformat-twitchsub}
  263. stop
  264. else:
  265. cancel event
  266. broadcast {@chatformat}
  267. stop
  268.  
  269. # On Join Event
  270. on join:
  271. if player is "Douwsky":
  272. set tablist name of player to "&b| Admin | &7%player%"
  273. set the display name of player to "&7%player%"
  274. set join message to "{@joined} &bAdmin &7%player%"
  275. stop
  276. if {twitchsubt::%player%} is true:
  277. set tablist name of player to "&5| Sub | &7%player%"
  278. set the display name of player to "&7%player%"
  279. set join message to "{@joined} &5Sub &7%player%"
  280. stop
  281. if player is "Technoviking_":
  282. set tablist name of player to "&b| Admin | &7%player%"
  283. set the display name of player to "&7%player%"
  284. set join message to "{@joined} &bAdmin &7%player%"
  285. stop
  286. if player is "WolfTM":
  287. set tablist name of player to "&c| Dev | &7%player%"
  288. set the display name of player to "&7%player%"
  289. set join message to "{@joined} &cDev * &7%player%"
  290. stop
  291. else:
  292. set tablist name of player to "&8| Gamer | &7%player%"
  293. set join message to "{@joined} &7%player%"
  294. stop
  295.  
  296. # On Quit Event
  297. on quit:
  298. if player is "Douwsky":
  299. set leave message to "{@quited} &bAdmin &7%player%"
  300. stop
  301. if {twitchsubt::%player%} is true:
  302. set leave message to "{@quited} &5Sub &7%player%"
  303. stop
  304. if player is "Technoviking_":
  305. set leave message to "{@quited} &bAdmin &7%player%"
  306. stop
  307. if player is "WolfTM":
  308. set leave message to "{@quited} &cDev * &7%player%"
  309. stop
  310. else:
  311. set leave message to "{@quited} &7%player%"
  312. stop
  313.  
  314. # START On Death
  315. on death of player:
  316.  
  317. # Attacker Player
  318. if attacker is a player:
  319.  
  320. # Bow (Projectiles)
  321. if projectile is set:
  322. set the death message to "{@deaths} %victim% &7is neergeschoten door&r %attacker%"
  323.  
  324. # Sword/Hand (No Projectiles)
  325. if projectile is not set:
  326. set the death message to "{@deaths} %victim% &7is vermoord door&r %attacker%"
  327.  
  328. # Attacker not Player
  329. if attacker is not a player:
  330. if attacker is set:
  331.  
  332. # Bow (Projectiles)
  333. if projectile is set:
  334. set the death message to "{@deaths} %victim% &7is neergeschoten door een &c%attacker%"
  335.  
  336. # Sword/Hand (No Projectiles)
  337. if projectile is not set:
  338.  
  339. # Killer Bunny
  340. if attacker is a killer rabbit:
  341. set the death message to "{@deaths} %victim% &7was target van hitman &cKiller Bunny"
  342.  
  343. # Normal Guardian
  344. if attacker is a normal guardian:
  345. set the death message to "{@deaths} %victim% &7is vermoord door een &cguardian"
  346.  
  347. # Default
  348. else:
  349. set the death message to "{@deaths} %victim% &7is vermoord door een &c%attacker%"
  350.  
  351. # Potions & Magic
  352. if damage was caused by potion:
  353. set the death message to "{@deaths} %victim% &7is vergiftigd"
  354.  
  355. # Drowning & Water
  356. if damage was caused by drowning:
  357. set the death message to "{@deaths} %victim% &7is verdronken"
  358.  
  359. # Lava
  360. if damage was caused by lava:
  361. set the death message to "{@deaths} %victim% &7probeerde te zwemmen in lava"
  362.  
  363. # Burning
  364. if damage was caused by burning:
  365. set the death message to "{@deaths} %victim% &7heeft zijn brandwonden niet overleeft"
  366.  
  367. # Fire
  368. if damage was caused by fire:
  369. set the death message to "{@deaths} %victim% &7heeft de brand niet overleeft"
  370.  
  371. # Void & World
  372. if damage was caused by void:
  373. set the death message to "{@deaths} %victim% &7viel van de wereld"
  374.  
  375. # Fall Damage
  376. if damage was caused by fall:
  377. set the death message to "{@deaths} %victim% &7heeft de harde landing niet overleeft"
  378. # END On Death
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement