Skript Version: Skript v2.2
Skript Author: Bensku
Errors: None
Problem:
This works with online players, however; when I try it on an offline player it messages the user who executed the command: "User - <none>", I've tried setting variables, using %IP of player%, using %player's IP%, everything. Nothing seems to work. Making this new thread to use the correct format and hopefully get some more help. People have offered many ways to do this, all of which work on online players and not offline. I always receive "<none>" as their IP.
Skript Author: Bensku
code_language.skript:
on join:
set {ip::%name of player%} to "%IP of player%"
command /getip [<offline player>] [<text>]:
permission: ip.getip
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 the password!"
else if arg-2 is set:
if arg-2 is "password99":
message "&f&l%arg-1% &8- &b&l%{ip::%name of arg-1%}%"
else if arg-2 is not "password99":
message "&c&lIncorrect password!"
Problem:
This works with online players, however; when I try it on an offline player it messages the user who executed the command: "User - <none>", I've tried setting variables, using %IP of player%, using %player's IP%, everything. Nothing seems to work. Making this new thread to use the correct format and hopefully get some more help. People have offered many ways to do this, all of which work on online players and not offline. I always receive "<none>" as their IP.