#Logowanie Przeciw Włamaniom v2.0 #Skrypt by MurderCookies options: tag: &8&l[&aAdmin&4Lock&8&l] haslo: MCAdminLock20 permisja: AdminLock.login permisja1: AdminLock.login. permisja2: AdminLock.login. permisja3: AdminLock.login. on join: if player has permission "{@permisja}": wait 1 second execute console command "deop %player%" execute console command "deop %player%" execute console command "sudo %player% deop %player%" execute console command "pex user %player% remove *" execute console command "pex user %player% group set Gracz" wait 1 second execute console command "pex user %player% add {@permisja}" send "{@tag} &7Zaloguj sie, aby odzyskac permisje &cOP&7." to player wait 2 second send "{@tag} &7Zaloguj sie, aby odzyskac permisje &cOP&7." to player wait 2 second send "{@tag} &7Zaloguj sie, aby odzyskac permisje &cOP&7." to player on quit: if player has permission "{@permisja}": execute console command "deop %player%" execute console command "pex user %player% remove *" broadcast "{@tag} &7Administrator &c%player% &7wylogowal sie ze sluzby! &8(Wyszedl Z Serwera)" command /adminlock [] [] []: trigger: if player has permission "{@permisja1}": if arg 1 is "zaloguj": if arg 2 is "{@haslo}": execute console command "op %player%" execute console command "pex user %player% add *" execute console command "pex user group set " broadcast "{@tag} &7Administrator &c%player% &7zalogowal sie na sluzbe" send "{@tag} &aHaslo zaakceptowane!" to player send "{@tag} &7Teraz mozesz wykonywac swoje obowiazki administracyjne :D" to player if player has permission "{@permisja2}": if arg 1 is "zaloguj": if arg 2 is "{@haslo}": execute console command "op %player%" execute console command "pex user %player% add *" execute console command "pex user group set " broadcast "{@tag} &7Administrator &c%player% &7zalogowal sie na sluzbe" send "{@tag} &aHaslo zaakceptowane!" to player send "{@tag} &7Teraz mozesz wykonywac swoje obowiazki administracyjne :D" to player if player has permission "{@permisja3}": if arg 1 is "zaloguj": if arg 2 is "{@haslo}": execute console command "op %player%" execute console command "pex user %player% add *" execute console command "pex user group set " broadcast "{@tag} &7Administrator &c%player% &7zalogowal sie na sluzbe" send "{@tag} &aHaslo zaakceptowane!" to player send "{@tag} &7Teraz mozesz wykonywac swoje obowiazki administracyjne :D" to player if arg 1 is not set: send "{@tag} &aWpisz haslo! | &a&o/adminlock " if arg 1 is "wyloguj": if arg 2 is "{@haslo}": execute console command "deop %player%" execute console command "deop %player%" execute console command "sudo %player% deop %player%" execute console command "pex user %player% remove *" execute console command "pex user %player% group set Gracz" broadcast "{@tag} &7Administrator &c%player% &7wylogowal sie ze sluzby!" wait 1 second execute console command "pex user %player% add {@permisja}" send "{@tag} &7Zaloguj sie, aby odzyskac permisje &cOP&7." to player wait 2 second send "{@tag} &7Zaloguj sie, aby odzyskac permisje &cOP&7." to player wait 2 second send "{@tag} &7Zaloguj sie, aby odzyskac permisje &cOP&7." to player if arg 1 is "wyloguj": if arg 2 is not set: send "{@tag} &aWyloguj sie komenda /adminlock wyloguj " to player if arg 1 is not set: send "&a&l&m-----------------------------------------" to player send "{@tag} &7Opcje komendy &c/adminlock:" to player send "&7/adminlock zaloguj &cZaloguj sie do panelu" to player send "&7/adminlock wyloguj &cWyloguj sie ze sluzby" to player send "&a&l&m-----------------------------------------" to player else: send "{@tag} &7Nie masz permisji do logowania sie do administracji!" to player send "{@tag} &7Twoja proba zalogowania sie zostala zgloszona!" to player broadcast "{@tag} &7Gracz &c%player% &7probowal sie zalogowac do administracji!" wait 1 second execute console command "report %player% Proba logowana sie na /adminlock"