mirror of
https://github.com/SimplexDevelopment/SimplexCL.git
synced 2024-12-22 16:07:38 +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."));
|
sender.sendMessage(msg("This command can only be run in game."));
|
||||||
}
|
}
|
||||||
|
|
||||||
execute(sender, args, allowConsole());
|
execute(sender, args);
|
||||||
return true;
|
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 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.
|
* @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
|
@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)))) {
|
if (subCommand("info", sender, getPermission() + ".info", args, () -> sender.sendMessage(msg("SimplexCL was created by SimplexDevelopment!", BasicColors.GOLD)))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user