Package net.lewmc.foundry.command
Class FoundryConsoleCommand
java.lang.Object
net.lewmc.foundry.command.FoundryCommand
net.lewmc.foundry.command.FoundryConsoleCommand
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
A command that can only be executed by the console.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.lewmc.foundry.command.FoundryCommand
hasPermission, onRun, requiredPermission
-
Constructor Details
-
FoundryConsoleCommand
public FoundryConsoleCommand()
-
-
Method Details
-
onCommand
public boolean onCommand(org.bukkit.command.CommandSender cs, org.bukkit.command.Command command, String label, String[] args) Runs the command with a check to ensure that the executor is a console entity.- Specified by:
onCommandin interfaceorg.bukkit.command.CommandExecutor- Overrides:
onCommandin classFoundryCommand- Parameters:
cs- CommandSender - The sender of the command.command- Command - The command.label- String - Label for the command.args- String[] - Arguments passed to the command.- Returns:
- boolean - If the command was successful.
-