mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Update the target IP when using /myadmin -o. Fixes #1841
This commit is contained in:
parent
580e88d1a9
commit
71c46b5431
@ -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":
|
||||||
|
Loading…
Reference in New Issue
Block a user