mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-12 05:53:53 +00:00
/gadmin: return false if required args are not present. Resolves #220
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
#
|
||||
# TotalFreedomMod banning config
|
||||
# Warning: modification of this file is not recomended
|
||||
# Warning: modification of this file is not recommended
|
||||
#
|
||||
# Format:
|
||||
# Ip: [IP-address / UUID]:[Last login name]:[Expiry unix timestamp (0 = never)][Banned by]:[Reason]
|
||||
|
@ -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