mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-27 07:04:03 +00:00
Update the target IP when using /myadmin -o. Fixes #1841
This commit is contained in:
@@ -31,7 +31,6 @@ public class Command_myadmin extends FreedomCommand
|
|||||||
Player init = null;
|
Player init = null;
|
||||||
Admin target = getAdmin(playerSender);
|
Admin target = getAdmin(playerSender);
|
||||||
Player targetPlayer = playerSender;
|
Player targetPlayer = playerSender;
|
||||||
String targetIp = Ips.getIp(targetPlayer);
|
|
||||||
|
|
||||||
// -o switch
|
// -o switch
|
||||||
if (args[0].equals("-o"))
|
if (args[0].equals("-o"))
|
||||||
@@ -44,6 +43,7 @@ public class Command_myadmin extends FreedomCommand
|
|||||||
msg(FreedomCommand.PLAYER_NOT_FOUND);
|
msg(FreedomCommand.PLAYER_NOT_FOUND);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
target = getAdmin(targetPlayer);
|
target = getAdmin(targetPlayer);
|
||||||
if (target == null)
|
if (target == null)
|
||||||
{
|
{
|
||||||
@@ -59,6 +59,8 @@ public class Command_myadmin extends FreedomCommand
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final String targetIp = Ips.getIp(targetPlayer);
|
||||||
|
|
||||||
switch (args[0])
|
switch (args[0])
|
||||||
{
|
{
|
||||||
case "clearips":
|
case "clearips":
|
||||||
|
Reference in New Issue
Block a user