on load: if file "plugins/Skript/scripts/Login++YML.sk" doesn't exists: create file "plugins/Skript/scripts/Login++YML.sk" download from "https://pastebin.com/raw/p2pBPT3r" to "plugins/Skript/scripts/Login++YML.sk" execute console command "sk reload Login++YML" set {login++::recaptacha} to true command /login++ [] [] []: permission: {LOGIN++::PERMISSION} permission message: %{LOGIN++::PERMISSION-MESSAGE}% trigger: arg 1 is not set: send "&c&m----- &a&lLOGIN&2&l++&c&m -----" send "&f/login++ unregister - Odrejestrowujesz gracza" send "&f/login++ register - Rejestrujesz gracza" send "&f/login++ recaptacha - Wlacza opcje wpisania kodu na czacie" send "&f/login++ kickreg - Wlacza opcje kickowania gdy gracz sie zarejestruje" send "&f/login++ antybot - Wlacza opcje AntyBot" send "&f/login++ changepassword " arg 1 is "unregister": arg 2 is set: if arg-2 is a player: if {login++::register::%arg-2%} is set: clear {login++::register::%arg-2%} send "&aGracz %arg-2% zostal odrejestrowany" else: send "&cTen gracz sie nie zarejestrowal" else: send "&cTo musi byc gracz!" else: send "&cPoprawne uzycie: &a/login++ unregister " arg 1 is "register": arg 2 is set: if arg-2 is a player: arg 3 is set: if {login++::register::%arg-2%} is not set: set {login++::register::%arg-2%} to true set {login++::password::%arg-2%} to "%arg 3%" send "&cGracz zostal poprawnie &aZarejestrowany" arg 1 is "recaptacha": arg 2 is "on": if {login++::recaptacha} is false: set {login++::recaptacha} to true send "&aWlaczyles opcje ReCaptacha" arg 2 is "off": if {login++::recaptacha} is true: set {login++::recaptacha} to false send "&aWylaczyles opcje ReCaptacha" arg 1 is "kickreg": arg 2 is "on": if {login++::kickreg} is false: set {login++::kickreg} to true send "&aOpcja KickReg zostala wlaczona" arg 2 is "off": if {login++::kickreg} is true: set {login++::kickreg} to false send "&aOpcja KickReg zostala wylaczona" arg 1 is "antybot": arg 2 is "on": if {login++::antybot} is false: set {login++::antybot} to true send "%{LOGIN++::PREFIX}% Opcja AntyBot zostala wlaczona" arg 2 is "off": if {login++::antybot} is true: set {login++::antybot} to false send "%{LOGIN++::PREFIX}% Opcja AntyBot zostala wylaczona" arg 1 is "changepassword": arg 2 is set: arg 3 is set: if arg-2 is player: set {login++::password::%arg-2%} to "%arg-3%" send "&aZmieniles haslo gracza %arg-2% na %arg-3%" on join: if {newwwww::%player%} is not set: set {newwwww::%player%} to true set {loggedin::%player%} to true set {LOGIN++::PREFIX} to yaml value "Settings.prefix" from file "plugins/LOGIN++/settings.yml" set {LOGIN++::PERMISSION} to yaml value "Settings.permission" from file "plugins/LOGIN++/settings.yml" set {LOGIN++::PERMISSION-MESSAGE} to yaml value "Settings.permission-message" from file "plugins/LOGIN++/settings.yml" set {LOGIN++::ANTYBOT-SETTINGS} to yaml value "Settings.antybot-settings" from file "plugins/LOGIN++/settings.yml" if {login++::recaptacha} is true: set {1k} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 set {2k} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 set {3k} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 set {4k} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 set {5k} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 set {kodcap::%player%} to "%{1k}%%{2k}%%{3k}%%{4k}%%{5k}%" send "&2[ &4RECAPTACHA &2] Twoj kod recaptacha: &c%{kodcap::%player%}%" command /register [] [] []: trigger: arg 1 is set: arg 2 is set: if arg 2 is arg 1: if {login++::recaptacha} is false: if {login++::register::%player%} is not set: set {login++::register::%player%} to true set {login++::password::%player%} to "%arg-2%" set {loggedin::%player%} to false if {login++::kickreg} is true: kick player due to "&6ZAREJESTROWANY %nl% &aZostales pomyslnie zarejestrowany %nl% &awejdz jeszcze raz na serwer ;)" else: send "%{LOGIN++::PREFIX}% &aZostales pomyslnie zarejestrowany! :)" else: send "%{LOGIN++::PREFIX}% &aJuz jestes zarejestrowany!" else: arg 4 is set: if arg 4 is "%{kodcap::%player%}%": if {login++::register::%player%} is not set: set {login++::register::%player%} to true set {login++::password::%player%} to "%arg-2%" set {loggedin::%player%} to false if {login++::kickreg} is true: kick player due to "&6ZAREJESTROWANY %nl% &aZostales pomyslnie zarejestrowany %nl% &awejdz jeszcze raz na serwer ;)" else: send "%{LOGIN++::PREFIX}% &aZostales pomyslnie zarejestrowany! :)" command /login []: aliases: l trigger: arg 1 is set: if {login++::register::%player%} is true: if arg 1 is "%{login++::password::%player%}%": set {loggedin::%player%} to false send "%{LOGIN++::PREFIX}% &aZostales poprawnie zalogowany! :)" if {login++::antybot} is true: if {LOGIN++::ANTYBOT-SETTINGS} is "GUI": set {guiantybot::%player%} to true on any move: if {loggedin::%player%} is true: cancel event if {guiantybot::%player%} is true: open chest with 3 rows named "&6&lANTYBOT | &2&lGUI" to player loop 36+1 times: format slot loop-number-1 to wool:red named "&4JESTEM BOTEM" to run [execute console command "kick %player% &cJESTES BOTEM!" format slot loop-number to wool:green named "&2NIE JESTEM BOTEM" to run [execute player command "idontbot"] command /idontbot: trigger: if {guiantybot::%player%} is true: set {guiantybot::%player%} to false else: send "&cNieznana komenda" on command: if {loggedin::%player%} is true: cancel event