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
Modifier and TypeFieldDescriptionstatic final String
Output string representing a message color.static final String
Output string representing a message color.static final String
Output string representing a message color.static SentinelCommand
The main instance of this class.net.citizensnpcs.api.command.CommandManager
The "/sentinel" command manager.static final String
Output string representing a failure prefix.static final String
Output string representing a success prefix. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildCommandHandler
(org.bukkit.command.PluginCommand command) Prepares the command handling system.boolean
onCommand
(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:
onCommand
in 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:
onTabComplete
in interfaceorg.bukkit.command.TabCompleter
-