Removed unnecessary allowConsole check

This commit is contained in:
Paldiu 2022-03-04 17:02:16 -06:00
parent 45076be8df
commit 78cc2dd1a3
3 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ public abstract class CommandBase extends Permissible implements ICommand {
sender.sendMessage(msg("This command can only be run in game."));
}
execute(sender, args, allowConsole());
execute(sender, args);
return true;
}

View File

@ -12,5 +12,5 @@ public interface ICommand extends CommandExecutor, TabCompleter {
* @param args The additional arguments to the command, if applicable (Provided by Paper)
* @param allowConsole Whether the command should be allowed anywhere, or only in game.
*/
void execute(CommandSender sender, String[] args, boolean allowConsole);
void execute(CommandSender sender, String[] args);
}

View File

@ -15,7 +15,7 @@ public final class ExampleCommand extends CommandBase {
}
@Override
public void execute(CommandSender sender, String[] args, boolean allowConsole) {
public void execute(CommandSender sender, String[] args) {
if (subCommand("info", sender, getPermission() + ".info", args, () -> sender.sendMessage(msg("SimplexCL was created by SimplexDevelopment!", BasicColors.GOLD)))) {
return;
}