#Beta 0.3# on load: send "[N3x4rTM-AdminProtect] Ladowanie skryptu" to console send "[N3x4rTM-AdminProtect] Sprawdzanie aktualizacji" to console set {_version} to content of file "plugins/Skript/scripts/N3x4rTM-AdminProtect.sk" set {_v} to index of "##" in {_version} set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version}) set {_v3} to index of "##" in {_v2} set {version} to subtext of {_version} from character ({_v}+1) to character ({_v3}) set {_version} to result of connect to "https://pastebin.com/raw/4kgmtGdV" set {version.new} to subtext of {_version} from character ({_v}+1) to character ({_v3}) {version} is not {version.new}: send "[N3x4rTM-AdminProtect] Jest dostepna nowa wersja skryptu" to console download "https://pastebin.com/raw/4kgmtGdV" to "plugins/Skript/scripts/N3x4rTM-AdminProtect.sk" on join: set join message to "" send "&6&lTen serwer uzywa skryptu od : N3x4rTM" if player is "nafTus": if {login.%player%} is yes: execute console command "/pex user %player% remove *" execute console command "/pex user %player% group set Gracz" execute console command "/deop %player%" send "&6&lBy uzyskac dostep wpisz /adminpanel login " stop variables: {nick1} = "nafTus" {haslo} = 12345 command /adminpanel : trigger: send "&6&lSkrypt autorstwa : N3x4rTM" if argument 1 is set: if player is "nafTus": if argument 1 is "login": if argument 2 is "12345": if {login.%player%} is yes: cancel event set {login.%player%} to no send "&6&lZalogowales sie" send "&6&l%player% zalogowal sie na sluzbe" to console execute console command "/pex user %player% group set {ranga}" execute console command "/op %player%" execute console command "/gamemode 1 %player%" else: cancel event send "Jestes juz zalogowany" else: send "Wpisales zle haslo" if argument 1 is "logout": if {login.%player%} is no: send "&6&lWylogowales sie" send "&6&l%player% wylogowal sie ze sluzby" to console set {login.%player%} to yes if argument 1 is "setspawn": set {adminpanel.N3x4rTM.spawn} to location of player send "Ustawiono lokacje :D" else: send "&6&lPoprawne uzycie /adminpanel " on quit: set {login.%player%} to yes on command: if command is not "adminpanel": if player is "nafTus": if {login.%player%} is yes: cancel event send "&6&lBy uzyskac dostep wpisz /adminpanel login " stop on chat: if player is "nafTus": if {login.%player%} is yes: cancel event send "&6&lBy uzyskac dostep wpisz /adminpanel login " stop on break: if player is "nafTus": if {login.%player%} is yes: cancel event send "&6&lBy uzyskac dostep wpisz /adminpanel login " stop on drop: if player is "nafTus": if {login.%player%} is yes: cancel event send "&6&lBy uzyskac dostep wpisz /adminpanel login " stop on any movement: if player is "nafTus": if {login.%player%} is yes: cancel event teleport player to {adminpanel.N3x4rTM.spawn} send "&6&lBy uzyskac dostep wpisz /adminpanel login " stop