God fucking dammit

This commit is contained in:
Video 2022-11-13 06:49:32 -07:00 committed by Paul Reilly
parent a420339017
commit 75cd1864f6

View File

@ -231,19 +231,14 @@ public class Command_myadmin extends FreedomCommand
} }
} }
} }
else if (args.length == 3) else if (args.length == 3 && args[0].equalsIgnoreCase("-o"))
{
if (args[0].equalsIgnoreCase("-o"))
{ {
List<String> options = new ArrayList<>(); List<String> options = new ArrayList<>();
options.addAll(singleArguments); options.addAll(singleArguments);
options.addAll(doubleArguments); options.addAll(doubleArguments);
return options; return options;
} }
} else if (args.length == 4 && args[0].equalsIgnoreCase("-o") && args[2].equalsIgnoreCase("clearip"))
else if (args.length == 4)
{
if (args[0].equalsIgnoreCase("-o") && args[2].equalsIgnoreCase("clearip"))
{ {
Admin admin = plugin.al.getEntryByName(args[1]); Admin admin = plugin.al.getEntryByName(args[1]);
if (admin != null) if (admin != null)
@ -251,7 +246,6 @@ public class Command_myadmin extends FreedomCommand
return admin.getIps(); return admin.getIps();
} }
} }
}
return FUtil.getPlayerList(); return FUtil.getPlayerList();
} }
} }