on connect: if player is an op: if {dozwoloneOp::%player%} is true: cancel event if {dozwoloneOp::%player%} is false: execute console command "deop %player%" add 1 to {probaOp::%player%} if player has permission "*": if {dozwolonePermisja::%player%} is true: cancel event if {dozwolonePermisja::%player%} is false: execute console command "pex user %player% remove *" add 1 to {probaPermisja::%player%} if {probaOp::%player%} is 10: if {ban::op::%player%} is false: set {ban::op::%player%} to true set {probaOp::%player%} to 0 if {ban::op::%player%} is true: set {probaOp::%player%} to 0 cancel event if {probaPermisja::%player%} is 10: if {ban::permisja::%player%} is false: set {ban::permisja::%player%} to true set {probaPermisja::%player%} to 0 if {ban::permisja::%player%} is true: set {probaPermisja::%player%} to 0 cancel event if {ban::op::%player%} is true: kick player due to "&8» &6Zostałeś zbanowany permamentnie za przekroczenie prób wejścia z 'OP'! &9Aby dostać unbana, skontaktuj się z administratorem serwera." if {ban::permisja::%player%} is true: kick player due to "&8» &6Zostałeś zbanowany permamentnie za przekroczenie prób wejścia z permisją '*'! &9Aby dostać unbana, skontaktuj się z administratorem serwera." if {ban::op::%player%} is false: cancel event if {ban::permisja::%player%} is false: cancel event command /antywlam [] [] []: executable by: console aliases: aw, antyw, awlam, protect trigger: if arg 1 is set: if arg 2 is "permisja": if arg 3 is "dozwol": set {dozwolonePermisja::%player-arg%} to true send "Poprawno dozwolono permisje '*' dla %player-arg%" to console if arg 3 is "odwroc": set {dozwolonePermisja::%player-arg%} to false send "Poprawno odwrocono dozwolenie permisji '*' dla %player-arg%" to console if arg 2 is "op": if arg 3 is "dozwol": set {dozwoloneOp::%player-arg%} to true send "Poprawno dozwolono 'OP' dla %player-arg%" to console if arg 3 is "odwroc": set {dozwoloneOp::%player-arg%} to false send "Poprawno odwrocono dozwolenie 'OP' dla %player-arg%" to console if arg 2 is "ban": if arg 3 is "odwroc": if {ban::op::%player-arg%} is true: send "Odbanowano gracza %player-arg%." to console set {ban::op::%player-arg%} to false if {ban::op::%player-arg%} is false: send "Gracz %player-arg% nie ma bana!" to console if {ban::permisja::%player-arg%} is true: send "Odbanowano gracza %player-arg%." to console set {ban::permisja::%player-arg%} to false if {ban::permisja::%player-arg%} is false: send "Gracz %player-arg% nie ma bana!" if arg 1 is not set: send "Uzycia komendy '/protect'" to console wait 1 tick send "'/protect permisja dozwol' -> Dozwala permisje '*' graczowi." to console send "'/protect permisja odwroc' -> Odwraca dozwolenie permisji '*' graczowi." to console wait 5 tick send "'/protect op dozwol' -> Dozwala 'OP' graczowi." to console send "'/protect op odwroc' -> Odwraca dozwolenie 'OP' graczowi." to console wait 5 tick send "'/protect ban odwroc' -> Odwraca bana graczowi za niedozwolone 'OP' / Permisja '*'" to console wait 1 tick send "Uzycia komendy '/protect'" to console