Package org.mcmonkey.sentinel.commands
Class SentinelCommand
java.lang.Object
org.mcmonkey.sentinel.commands.SentinelCommand
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter
public class SentinelCommand
extends Object
implements org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter
Helper class for the Sentinel command.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringOutput string representing a message color.static final StringOutput string representing a message color.static final StringOutput string representing a message color.static SentinelCommandThe main instance of this class.net.citizensnpcs.api.command.CommandManagerThe "/sentinel" command manager.static final StringOutput string representing a failure prefix.static final StringOutput string representing a success prefix. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildCommandHandler(org.bukkit.command.PluginCommand command) Prepares the command handling system.booleanonCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args) Handles a player or server command.onTabComplete(org.bukkit.command.CommandSender commandSender, org.bukkit.command.Command command, String s, String[] strings) Handles tab completion for a player or server command.
-
Field Details
-
colorBasic
Output string representing a message color. -
colorBad
Output string representing a message color. -
colorEmphasis
Output string representing a message color. -
prefixGood
Output string representing a success prefix. -
prefixBad
Output string representing a failure prefix. -
manager
public net.citizensnpcs.api.command.CommandManager managerThe "/sentinel" command manager. -
instance
The main instance of this class. -
addTargetTabCompletions
-
itemPrefixes
-
materialNames
-
-
Constructor Details
-
SentinelCommand
public SentinelCommand()
-
-
Method Details
-
buildCommandHandler
public void buildCommandHandler(org.bukkit.command.PluginCommand command) Prepares the command handling system. -
onCommand
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args) Handles a player or server command.- Specified by:
onCommandin interfaceorg.bukkit.command.CommandExecutor
-
onTabComplete
public List<String> onTabComplete(org.bukkit.command.CommandSender commandSender, org.bukkit.command.Command command, String s, String[] strings) Handles tab completion for a player or server command.- Specified by:
onTabCompletein interfaceorg.bukkit.command.TabCompleter
-