mirror of
https://github.com/SimplexDevelopment/SimplexCL.git
synced 2024-11-14 14:33:34 +00:00
Removed unnecessary allowConsole check
This commit is contained in:
parent
45076be8df
commit
78cc2dd1a3
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user