# Pozwalam na edytowanie: # = options (mało, prawda?) # # 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: Np. Admin1 chce wyrzuciic Admin2 ale nie zostaje wyrzucony bo Admin1 ma permissje wBans.antykick # wBans.antyban = blokada przed banem gracza # Wytłumaczenie: Np. Admin1 chce zbanować Admin2 ale nie zostaje zbanowany bo Admin1 ma permissje wBans.antyban # wBans.warn = warnowanie graczy # wBans.menu = dostęp do menu w GUI on script load: if folder "plugins/wBans" doesn't exists: create folder "plugins/wBans" if folder "plugins/wBans/ban" doesn't exists: create folder "plugins/wBans/zbanowani" options: tag: &4&lw&a&lBans &8&l>> jsonmessage: <%sender%> %message% command /wbans [] []: trigger: if player has permission "wBans.menu": if arg 1 is set: if arg 2 is not set: wait 2 tick open chest with 3 rows named "{@tag}" to player wait 3 ticks format slot 0 of player with 1 of player head named "&3Gracz: &c%arg 1%" with lore "" to be unstealable set {wBans::gui::%player%} to 1 loop 10 times: format slot {wBans::gui::%player%} of player with 1 of Yellow Stained Glass Pane named " &4&l## " with lore " &4&l## " to be unstealable add 1 to {wBans::gui::%player%} clear {wBans::gui::%player%} format slot 11 of player with 1 of Red Wool named "&4Bany" with lore "&3Karta z banowaniem gracza" to run [execute player command "wbans %arg 1% ban"] format slot 12 of player with 1 of Yellow Wool named "&eKicki" with lore "&3Karta z kickowaniem gracza" to run [execute player command "wbans %arg 1% kick"] format slot 13 of player with 1 of Pink Wool named "&dWarn" with lore "&3Karta z warnowaniem gracza" to run [execute player command "wbans %arg 1% warn"] format slot 13 of player with 1 of Orange Wool named "&6Mute" with lore "&3Mutowanie gracza||&3Status: &c%{wBans::mute::%arg 1%}%" to run [execute player command "mute %arg 1%"] format slot 14 of player with 1 of White Wool named "&fUnban" with lore "&3Odbanowywanie gracza" to run [execute player command "unban %arg 1%"] set {wBans::gui::%player%} to 15 loop 11 times: format slot {wBans::gui::%player%} of player with 1 of Yellow Stained Glass Pane named " &4&l## " with lore " &4&l## " to be unstealable add 1 to {wBans::gui::%player%} clear {wBans::gui::%player%} format slot 26 of player with 1 of arrow named "&4&lWroc" with lore "&3Wroc do glownego panelu" to run [execute player command "wbans %arg 1%"] if arg 2 is "ban": wait 2 tick open chest with 3 rows named "{@tag}" to player wait 3 tick format slot 0 of player with 1 of player head named "&3Gracz: &c%arg 1%" with lore "" to be unstealable set {wBans::gui::%player%} to 1 loop 10 times: format slot {wBans::gui::%player%} of player with 1 of Yellow Stained Glass Pane named " &4&l## " with lore " &4&l## " to be unstealable add 1 to {wBans::gui::%player%} clear {wBans::gui::%player%} format slot 11 of player with 1 of red wool named "&3Typ: &4Ban" with lore "&3Powod: &4Admin zawsze ma racje!" to run [execute player command "ban %arg 1% Admin.zawsze.ma.racje!"] format slot 12 of player with 1 of red wool named "&3Typ: &4Ban" with lore "&3Powod: &4Obraza!" to run [execute player command "ban %arg 1% Obraza"] format slot 13 of player with 1 of red wool named "&3Typ: &4Ban" with lore "&3Powod: &4Reklama" to run [execute player command "ban %arg 1% Reklama"] format slot 14 of player with 1 of red wool named "&3Typ: &4Ban" with lore "&3Powod: &4Cheaty" to run [execute player command "ban %arg 1% Cheaty"] set {wBans::gui::%player%} to 15 loop 11 times: format slot {wBans::gui::%player%} of player with 1 of Yellow Stained Glass Pane named " &4&l## " with lore " &4&l## " to be unstealable add 1 to {wBans::gui::%player%} clear {wBans::gui::%player%} format slot 26 of player with 1 of arrow named "&4&lWroc" with lore "&3Wroc do glownego panelu" to run [execute player command "wbans %arg 1%"] if arg 2 is "kick": wait 2 tick open chest with 3 rows named "{@tag}" to player wait 3 tick format slot 0 of player with 1 of player head named "&3Gracz: &c%arg 1%" with lore "" to be unstealable set {wBans::gui::%player%} to 1 loop 10 times: format slot {wBans::gui::%player%} of player with 1 of Yellow Stained Glass Pane named " &4&l## " with lore " &4&l## " to be unstealable add 1 to {wBans::gui::%player%} clear {wBans::gui::%player%} format slot 11 of player with 1 of yellow wool named "&eKick" with lore "&3Powod: &4Admin zawsze ma racje!" to run [execute player command "kick %arg 1% Admin.zawsze.ma.racje!"] format slot 12 of player with 1 of yellow wool named "&eKick" with lore "&3Powod: &4Obraza" to run [execute player command "kick %arg 1% Obraza"] format slot 13 of player with 1 of yellow wool named "&eKick" with lore "&3Powod: &4Reklama" to run [execute player command "kick %arg 1% Reklama"] set {wBans::gui::%player%} to 14 loop 12 times: format slot {wBans::gui::%player%} of player with 1 of Yellow Stained Glass Pane named " &4&l## " with lore " &4&l## " to be unstealable add 1 to {wBans::gui::%player%} clear {wBans::gui::%player%} format slot 26 of player with 1 of arrow named "&4&lWroc" with lore "&3Wroc do glownego panelu" to run [execute player command "wbans %arg 1%"] if arg 2 is "warn": wait 2 tick open chest with 3 rows named "{@tag}" to player wait 3 tick format slot 0 of player with 1 of player head named "&3Gracz: &c%arg 1%" with lore "" to be unstealable set {wBans::gui::%player%} to 1 loop 10 times: format slot {wBans::gui::%player%} of player with 1 of Yellow Stained Glass Pane named " &4&l## " with lore " &4&l## " to be unstealable add 1 to {wBans::gui::%player%} clear {wBans::gui::%player%} format slot 11 of player with 1 of pink wool named "&dWarn" with lore "&3Dodaj" to run [execute player command "kick %arg 1% Admin.zawsze.ma.racje!"] format slot 12 of player with 1 of pink wool named "&dWarn" with lore "&3Usun" to run [execute player command "kick %arg 1% Obraza"] format slot 13 of player with 1 of pink wool named "&dWarn" with lore "&3Ilosc: &c%{wBans::warny::%arg 1%}%" to be unstealable set {wBans::gui::%player%} to 14 loop 11 times: format slot {wBans::gui::%player%} of player with 1 of Yellow Stained Glass Pane named " &4&l## " with lore " &4&l## " to be unstealable add 1 to {wBans::gui::%player%} clear {wBans::gui::%player%} format slot 26 of player with 1 of arrow named "&4&lWroc" with lore "&3Wroc do glownego panelu" to run [execute player command "wbans %arg 1%"] else: send "{@tag} &cPodaj gracza" to player else: send "&4Nie masz pozwolenia do tej komendy! &c(wBans.gui)" to player play raw sound "random.pop" at player with pitch 1 volume 5 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 broadcast " " broadcast "{@tag} &cGracz &2%arg 1% &czostal wyciszony na chacie przez &2%player%" broadcast " " else: set {wBans::mute::%arg 1%} to false broadcast " " broadcast "{@tag} &cGracz &2%player% &cusuna wyciszenie gracza &2%arg 1%" broadcast " " else: send "{@tag} &cPodaj gracza" to player 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 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 1 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: &4Dostales warna! %nl% &co================o" 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 " " 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::ban::%arg 1%} is true: set {wBans::ban::%arg 1%} to false clear {wBans::ban::powod:%arg 1%} 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/%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 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 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 else: if arg 1 has permission "wBans.antyban": send "&4Nie mozesz zbanowac tego gracza poniewaz ma permisje &cwBans.antyban" to player play raw sound "random.pop" at player with pitch 1 volume 5 else: set {wBans::ban::przez::%arg 1%} to player set {wBans::ban::%arg 1%} to true set {wBans::ban::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::ban::powod::%arg 1%}% %nl% &co================o" broadcast " " broadcast "{@tag} &cGracz &2%arg 1% &czostal zbanowany przez &2%player% &cza &4%arg 2%" broadcast " " play raw sound "random.anvil_use" at player with pitch 1 volume 5 create file "plugins/wBans/%arg 1%.yml" 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 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 else: if arg 1 has permission "wBans.antykick": send "&4Nie mozesz wyrzucic tego gracza poniewaz ma permisje &cwBans.antykick" to player play raw sound "random.pop" at player with pitch 1 volume 5 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 " " play raw sound "random.anvil_use" at player with pitch 1 volume 5 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 on connect: if {wBans::ban::%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::ban::przez::%player%}% %nl% &co================o %nl% &3Powod: &4%{wBans::ban::powod::%player%}% %nl% &co================o" broadcast " " broadcast "&4&lw&a&lBans &8&l>>&c Gracz &2%player% &cprobowal wejsc ale jest zbanowany!" broadcast " " else: stop on chat: if {wBans::mute::%player%} is true: cancel event send "{@tag} &cJestes wyciszony! Napisz na: &e/helpop" to player else: loop all players: cancel event send json of "{@jsonmessage}" run "/wbans %player%" then "" to loop-player