diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_myadmin.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_myadmin.java index 7ae6905..38c3d83 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_myadmin.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_myadmin.java @@ -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":