# Permisje: # wBans.ban = dostęp do banowania graczy # wBans.kick = dostęp do wyrzucania graczy # wBans.unban = dostęp do odbanowywania graczy # wBans.antykick = blokada przed wyrzuceniem gracza # Wytłumaczenie: Administrator1 chce wyrzuciic Admin2 ale nie zostaje wyrzucony bo Admin1 ma permissje wBans.antykick # wBans.antyban = blokada przed banem gracza # Wytłumaczenie: Administrator1 chce zbanować Admin2 ale nie zostaje zbanowany bo Admin1 ma permissje wBans.antyban # wBans.warn = dostęp do warnowania graczy on script load: if folder "plugins/wBans" doesn't exists: create folder "plugins/wBans" if folder "plugins/wBans/warn" doesn't exists: create folder "plugins/wBans/warn" if folder "plugins/wBans/ban" doesn't exists: create folder "plugins/wBans/ban" options: tag: &4&lw&a&lBans &8&l>> command /mute []: trigger: if player has permission "wBans.mute": if arg 1 is set: if {wBans::mute::%arg 1%} is false: set {wBans::mute::%arg 1%} to true else: set {wBans::mute::%arg 1%} to false else: send "{@tag} &cPodaj gracza" else: send "&4Nie masz pozwolenia do tej komendy! &c(wBans.mute)" to player play raw sound "random.pop" at player with pitch 1 volume 5 stop command /warn [] []: trigger: if player has permission "wBans.warn": if arg 1 is not set: send "{@tag} &cPoprawne uzycie /warn [dodaj|usun|sprawdz] " if arg 1 is "dodaj": if arg 2 is set: add 1 to {wBans::warny::%arg 2%} broadcast " " broadcast "{@tag} &cGracz &2%arg 2% &czostal ukarany warnem przez %player%" broadcast " " kick player due to "&4&l>> ====== &4&l<< %nl% &co================o %nl% &3Typ: &4warn %nl% &co================o %nl% &3Przez: &4%player% %nl% &co================o %nl% &3Powod: Dostales warna! %nl% &co================o" create file "plugins/wBans/warn/%arg 2%.yml" set "Dodany przez:" to "%sender%" in yaml file "plugins/wBans/warn/%arg 2%.yml" set "Data:" to "%now%" in yaml file "plugins/wBans/warn/%arg 2%.yml" set "Ilosc:" to "%{wBans::warny::%arg 2%}%" in yaml file "plugins/wBans/warn/%arg 2%.yml" else: send "{@tag} &cPodaj gracza!" to player if arg 1 is "usun": if arg 2 is set: remove 1 from {wBans::warny::%arg 1%} broadcast " " broadcast "{@tag} &cGracz &2%player% &cusuna 1 warna uzytkownikowi %arg 2%" broadcast " " delete file "plugins/wBans/warn/%arg 2%.yml" else: send "{@tag} &cPodaj gracza!" to player if arg 1 is "sprawdz": if arg 2 is set: send "{@tag} &cGracz &2%arg 2% &cposiada &2%{wBans::warny::%arg 2%}% &cwarny" to player else: send "{@tag} &cPodaj gracza!" to player else: send "&4Nie masz pozwolenia do tej komendy! &c(wBans.warn)" to player play raw sound "random.pop" at player with pitch 1 volume 5 stop command /unban []: trigger: if player has permission "wBans.unban": if {wBans::baned:%arg 1%} is true: set {wBans::baned:%arg 1%} to false clear {wBans::powod:%arg 1%} set {wBans::tempban::%arg 1%::%arg 1%} to false broadcast " " broadcast "{@tag} &cGracz &2%player% &codbanowal gracza &2%arg 1%" broadcast " " play raw sound "random.anvil_use" at player with pitch 1 volume 5 delete file "plugins/wBans/ban/%arg 1%.yml" else: send "{@tag} &cAle gracz &2%arg 1% &cnie jest zbanowany!" to player play raw sound "random.pop" at player with pitch 1 volume 5 stop else: send "&4Nie masz pozwolenia do tej komendy! &c(wBans.unban)" to player play raw sound "random.pop" at player with pitch 1 volume 5 stop command /ban [] []: trigger: if player has permission "wBans.ban": if arg 1 is not set: send "{@tag} &cPodaj gracza!" to player play raw sound "random.pop" at player with pitch 1 volume 5 stop else: if arg 2 is not set: send "{@tag} &cPodaj powod! &4&l(Powod nie moze zawierac spacji!)" to player play raw sound "random.pop" at player with pitch 1 volume 5 stop else: if arg 1 has permission "anty.ban": send "&4Nie mozesz zbanowac tego gracza poniewaz ma permisje &canty.ban" to player play raw sound "random.pop" at player with pitch 1 volume 5 stop else: if {wBans::baned:%arg 1%} is true: set {wBans::by::%arg 1%} to player set {wBans::baned::%arg 1%} to true set {wBans::powod::%arg 1%} to "%arg 2%" launch ball large firework colored red and green and yellow and pink and blue at arg 1 timed 0 strike lightning effect at the arg 1 kick arg 1 due to "&4&l>> ====== &4&l<< %nl% &co================o %nl% &3Typ: &4ban %nl% &co================o %nl% &3Przez: &4%player% %nl% &co================o %nl% &3Powod: &4%{wBans::powod:%arg 1%}% %nl% &co================o" broadcast " " broadcast "{@tag} &cGracz &2%arg 1% &czostal zbanowany przez &2%player% &cza &4%arg 2%" broadcast " " wait 10 ticks play raw sound "random.anvil_use" at player with pitch 1 volume 5 create file "plugins/wBans/ban/%arg 1%.yml" set "Dodany przez:" to "%sender%" in yaml file "plugins/wBans/ban/%arg 2%.yml" set "Data:" to "%now%" in yaml file "plugins/wBans/warn/%arg 2%.yml" set "Powod:" to "%arg 2%" in yaml file "plugins/wBans/warn/%arg 2%.yml" stop else: send "{@tag} &cAle gracz &2%arg 1% &cjest juz zbanowany!" to player play raw sound "random.pop" at player with pitch 1 volume 5 stop else: send "&4Nie masz pozwolenia do tej komendy! &c(wBans.ban)" to player play raw sound "random.pop" at player with pitch 1 volume 5 stop command /kick [] []: trigger: if player has permission "wBans.kick": if arg 1 is not set: send "{@tag} &cPodaj gracza!" to player play raw sound "random.pop" at player with pitch 1 volume 5 stop else: if arg 2 is not set: send "{@tag} &cPodaj powod! &4&l(Powod nie moze zawierac spacji!)" to player play raw sound "random.pop" at player with pitch 1 volume 5 stop else: if arg 1 has permission "anty.ban": send "&4Nie mozesz zbanowac tego gracza poniewaz ma permisje &canty.ban" to player play raw sound "random.pop" at player with pitch 1 volume 5 stop else: launch ball large firework colored red and green and yellow and pink and blue at arg 1 timed 0 strike lightning effect at the arg 1 kick arg 1 due to "&4&l>> ====== &4&l<< %nl% &co================o %nl% &3Typ: &4kick %nl% &co================o %nl% &3Przez: &4%player% %nl% &co================o %nl% &3Powod: &4%arg 2% %nl% &co================o" broadcast " " broadcast "{@tag} &cGracz &2%arg 1% &czostal wyrzucony przez &2%player% &cza &4%arg 2%" broadcast " " wait 10 ticks play raw sound "random.anvil_use" at player with pitch 1 volume 5 stop else: send "&4Nie masz pozwolenia do tej komendy! &c(wBans.kick)" to player play raw sound "random.pop" at player with pitch 1 volume 5 stop on connect: if {wBans::baned::%player%} is true: wait 1 tick kick player due to "&4&l>> ====== &4&l<< %nl% &co================o %nl% &3Typ: &4ban %nl% &co================o %nl% &3Przez: &4%{wBans::by::%player%}% %nl% &co================o %nl% &3Powod: &4%{wBans::powod::%player%}% %nl% &co================o" broadcast " " broadcast "&4&lw&a&lBans &8&l>>&c Gracz &2%player% &cprobowal wejsc ale jest zbanowany!" broadcast " " stop else: stop on chat: if {wBans::mute::%player%} is true: cancel event send "{@tag} &cJestes wyciszony!" to player stop else: stop