The command blocker is now functioning as per normal (#187)

This commit is contained in:
Nathan Curran
2020-02-27 14:31:21 +11:00
committed by GitHub
parent ce804ac23b
commit ecc907b535
2 changed files with 11 additions and 39 deletions

View File

@ -18,21 +18,13 @@ public class CommandBlockerEntry
@Getter
private final String command;
@Getter
private final String subCommand;
@Getter
private final String message;
public CommandBlockerEntry(CommandBlockerRank rank, CommandBlockerAction action, String command, String message)
{
this(rank, action, command, null, message);
}
public CommandBlockerEntry(CommandBlockerRank rank, CommandBlockerAction action, String command, String subCommand, String message)
{
this.rank = rank;
this.action = action;
this.command = command;
this.subCommand = ((subCommand == null) ? null : subCommand.toLowerCase().trim());
this.message = ((message == null || message.equals("_")) ? "That command is blocked." : message);
}