mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 10:05:59 +00:00
/gadmin: return false if required args are not present. Resolves #220
This commit is contained in:
parent
d193686c79
commit
2f055fbecb
@ -1,3 +1,3 @@
|
|||||||
#Build Number for ANT. Do not edit!
|
#Build Number for ANT. Do not edit!
|
||||||
#Sat Jun 28 11:45:35 CEST 2014
|
#Sat Jun 28 11:59:25 CEST 2014
|
||||||
build.number=887
|
build.number=888
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# TotalFreedomMod banning config
|
# TotalFreedomMod banning config
|
||||||
# Warning: modification of this file is not recomended
|
# Warning: modification of this file is not recommended
|
||||||
#
|
#
|
||||||
# Format:
|
# Format:
|
||||||
# Ip: [IP-address / UUID]:[Last login name]:[Expiry unix timestamp (0 = never)][Banned by]:[Reason]
|
# 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
String mode = args[0].toLowerCase();
|
final String mode = args[0].toLowerCase();
|
||||||
|
|
||||||
if (mode.equals("list"))
|
if (mode.equals("list"))
|
||||||
{
|
{
|
||||||
@ -42,7 +42,14 @@ public class Command_gadmin extends TFM_Command
|
|||||||
ChatColor.stripColor(player.getDisplayName()),
|
ChatColor.stripColor(player.getDisplayName()),
|
||||||
hash));
|
hash));
|
||||||
}
|
}
|
||||||
else if (hash.equalsIgnoreCase(args[1]))
|
|
||||||
|
if (args.length < 2)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (hash.equalsIgnoreCase(args[1]))
|
||||||
{
|
{
|
||||||
if (mode.equals("kick"))
|
if (mode.equals("kick"))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user