Package net.lewmc.foundry.command
Class FoundryPlayerCommand
java.lang.Object
net.lewmc.foundry.command.FoundryCommand
net.lewmc.foundry.command.FoundryPlayerCommand
- 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
-
FoundryPlayerCommand
public FoundryPlayerCommand()
-
-
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 player entity.- Specified by:
onCommandin interfaceorg.bukkit.command.CommandExecutor- Overrides:
onCommandin classFoundryCommand- Parameters:
cs- Player - 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.
-