mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-12 13:53:54 +00:00
/gadmin: return false if required args are not present. Resolves #220
This commit is contained in:
@ -25,7 +25,7 @@ public class Command_gadmin extends TFM_Command
|
||||
return false;
|
||||
}
|
||||
|
||||
String mode = args[0].toLowerCase();
|
||||
final String mode = args[0].toLowerCase();
|
||||
|
||||
if (mode.equals("list"))
|
||||
{
|
||||
@ -42,7 +42,14 @@ public class Command_gadmin extends TFM_Command
|
||||
ChatColor.stripColor(player.getDisplayName()),
|
||||
hash));
|
||||
}
|
||||
else if (hash.equalsIgnoreCase(args[1]))
|
||||
|
||||
if (args.length < 2)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (hash.equalsIgnoreCase(args[1]))
|
||||
{
|
||||
if (mode.equals("kick"))
|
||||
{
|
||||
|
Reference in New Issue
Block a user