Update the target IP when using /myadmin -o. Fixes #1841

This commit is contained in:
JeromSar 2016-08-26 11:42:13 +02:00
parent 580e88d1a9
commit 71c46b5431

View File

@ -31,7 +31,6 @@ public class Command_myadmin extends FreedomCommand
Player init = null;
Admin target = getAdmin(playerSender);
Player targetPlayer = playerSender;
String targetIp = Ips.getIp(targetPlayer);
// -o switch
if (args[0].equals("-o"))
@ -44,6 +43,7 @@ public class Command_myadmin extends FreedomCommand
msg(FreedomCommand.PLAYER_NOT_FOUND);
return true;
}
target = getAdmin(targetPlayer);
if (target == null)
{
@ -59,6 +59,8 @@ public class Command_myadmin extends FreedomCommand
}
}
final String targetIp = Ips.getIp(targetPlayer);
switch (args[0])
{
case "clearips":