command /register [] []: trigger: if {reg.%player%} is false: if arg 1 is set: if arg 1 is arg 2: set {reg.%player%} to true set {reg.%player%.haslo} to arg 1 log "Gracz %player% zarejestrowal sie" to "Core/Auth/Lista.log" log "" to "Core/Auth/Lista.log" else: send "&aHasla nie sa identyczne" else: send "&aPoprawne uzycie &9/register [haslo] [haslo]" stop else: send "&8>> &2 Jestes juz zarejestrowany" to player stop on first join: set {First.%player%} to true send "&aZarejestruj sie komenda /register [haslo] [haslo]" stop on join: if {First.%player%} is true: send "&aZaloguj sie komenda /login [haslo]" set {_join.%player%} to location of player stop on chat: if {Login.%player%} is false: cancel event send "&aZaloguj sie komenda /login [haslo]" stop on any movement: if {Login.%player%} is false: send "&aZaloguj sie komenda /login [haslo]" stop command /login []: trigger: if {Login.%player%} is true: else: if arg 1 is "{reg.%player%.haslo}": set {Login.%player%} to true send "&aZalogowales sie pomyslnie" teleport the player to {_join.%player%} stop else: send "&cNie poprawne haslo" on command: if command is not "login" or "register": if {reg.%player%} is true: send "&aZaloguj sie komenda /login [haslo]" else: send "&aZarejestruj sie komenda /register [haslo] [haslo]"