mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-11 13:33:54 +00:00
Bleeding - Fixed empty commands
Empty commands would always run the first alphabetically sorted TFM command.
This commit is contained in:
@ -14,6 +14,11 @@ public class Command_adminmode extends TFM_Command
|
||||
@Override
|
||||
public boolean run(CommandSender sender, Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
|
||||
{
|
||||
if (args.length != 1)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (args[0].equalsIgnoreCase("off"))
|
||||
{
|
||||
TotalFreedomMod.adminOnlyMode = false;
|
||||
|
@ -159,6 +159,11 @@ public class TotalFreedomMod extends JavaPlugin
|
||||
commandLabel,
|
||||
StringUtils.join(args, " ")), true);
|
||||
}
|
||||
|
||||
if ("".equals(commandLabel))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
TFM_Command dispatcher;
|
||||
try
|
||||
|
Reference in New Issue
Block a user