Hi, this is my Skript, I'm trying to make my server more secure by blocking administrators from seeing IP adresses unless I trust them enough, so I'm making a custom command with a password and permission but it's not seeming to work on offline players and I don't know how I would be able to fix this. Here's my Skript:
Help would be much appreciated.
code_language.skript:
command /getip [<player>] [<text>]:
permission: getip.use
permission message: "&CYou don't have access to this command."
trigger:
if arg-1 is not set:
message "&cYou must put a player's username."
else if arg-1 is set:
if arg-2 is not set:
message "&cYou must put a password."
else if arg-2 is set:
if arg-2 is "password1":
if arg-1 isn't "VoidStacker" or "GotUrDox" or "StrafinMC" or "Macrolect":
message "&e%arg-1%'s &7IP adress is &e%IP of arg-1%&7."
else if arg-1 is "VoidStacker" or "GotUrDox" or "StrafinMC" or "Macrolect":
message "&cYou're not allowed to view this user's IP adress."
message "&7Nice try though. ;)"
else if arg-2 is not "password1":
message "&cIncorrect password!"