Package com.ultikits.ultitools.abstracts
Class AbstractConsoleCommandExecutor
java.lang.Object
com.ultikits.ultitools.abstracts.AbstractCommand
com.ultikits.ultitools.abstracts.AbstractConsoleCommandExecutor
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
Abstract class representing a console command executor.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanonCommand(org.bukkit.command.CommandSender commandSender, org.bukkit.command.Command command, String s, String[] strings) protected abstract booleanonConsoleCommand(org.bukkit.command.CommandSender commandSender, org.bukkit.command.Command command, String[] strings) Executes the given command, returning its successMethods inherited from class com.ultikits.ultitools.abstracts.AbstractCommand
getHelpCommand, sendErrorMessage, sendHelpMessage
-
Constructor Details
-
AbstractConsoleCommandExecutor
public AbstractConsoleCommandExecutor()
-
-
Method Details
-
onCommand
public boolean onCommand(org.bukkit.command.CommandSender commandSender, org.bukkit.command.Command command, String s, String[] strings) - Parameters:
commandSender- the sender of the commandcommand- the command which was executeds- the alias of the command which was usedstrings- the arguments passed to the command, split by spaces- Returns:
- whether the command was executed successfully
- See Also:
-
onConsoleCommand
protected abstract boolean onConsoleCommand(org.bukkit.command.CommandSender commandSender, org.bukkit.command.Command command, String[] strings) Executes the given command, returning its success- Parameters:
commandSender- the sender of the commandcommand- the command which was executedstrings- the arguments passed to the command, split by spaces- Returns:
- whether the command was executed successfully
-