Hello, I have a problem that I can't fix. When I join, my IP should be checked by /login and if it is correct from the last login I should be logged in automatically. The problem is that he logs me out again and he doesn't check my IP
The code:
The code:
JavaScript:
on join:
if player is "GamerThings":
if {ip.gamerthings} contains IP of player:
execute console command "lp user GamerThings parent add owner"
wait 60 ticks
send "&5&lVERIFY &8> &7Wir haben dich automatisch eingeloggt."
if {ip.gamerthings} does not contain IP of player:
send "&5&lVERIFY &8> &cWir haben dich automatisch ausgeloggt."
execute console command "lp user GamerThings parent remove owner"
command /login [<text>]:
permission: aygaria.2fa.gamerthings
permission message: &cThe command is not an exist! Please give an another Command!
trigger:
if arg 1 is equal to {loginpassword.gamerthings}:
set {ip.gamerthings} to IP of player
execute console command "lp user GamerThings parent set owner"
send "&5&lVERIFY &8> &aGamerThings, &7Du hast dich erfolgreich verifiziert! &cWir haben deine IP und Zeit gespeichert!"
execute console command "msg Valdo010 &5&lVERIFY &8> &aGamerThings &7hat sich mit der IP &a%IP of player% &7erfolgreich eingeloggt. &7Zuletzt eingeloggt: &a%player's last login%"
execute console command "mail send Valdo010 &5&lVERIFY &8> &aGamerThings &7hat sich mit der IP &a%IP of player% &7erfolgreich eingeloggt. &7Zuletzt eingeloggt: &a%player's last login%"
execute console command "mail send GamerThings &5&lVERIFY &8> &aGamerThings &7hat sich mit der IP &a%IP of player% &7erfolgreich eingeloggt. &7Zuletzt eingeloggt: &a%player's last login%"
if arg 1 is not set:
send "&5&lVERIFY &8> &cBenutzung: /login (Passwort)"
command /logout:
permission: aygaria.2fa.gamerthings
permission message: &cThe command is not an exist! Please give an another Command!
trigger:
execute console command "lp user GamerThings parent remove owner"
send "&5&lVERIFY &8> &aGamerThings, &7Du hast dich erfolgreich entverifiziert!"
command /passwort [<text>]:
permission: aygaria.2fa.gamerthings.change
permission message: &cThe command is not an exist! Please give an another Command!
trigger:
set {loginpassword.gamerthings} to arg 1
send "&5&lVERIFY &8> &aGamerThings, &7Dein neues Passwort lautet: &5&l%arg 1%"
Last edited: