Package com.earth2me.essentials.commands
Class EssentialsToggleCommand
java.lang.Object
com.earth2me.essentials.commands.EssentialsCommand
com.earth2me.essentials.commands.EssentialsToggleCommand
- All Implemented Interfaces:
IEssentialsCommand
- Direct Known Subclasses:
Commandfly
,Commandgod
,Commandmsgtoggle
,Commandpaytoggle
,Commandrtoggle
,Commandsocialspy
,Commandtpauto
,Commandtptoggle
,Commandvanish
-
Field Summary
Fields inherited from class com.earth2me.essentials.commands.EssentialsCommand
COMMON_DATE_DIFFS, COMMON_DURATIONS, ess, module
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTabCompleteOptions
(Server server, CommandSource sender, String commandLabel, String[] args) getTabCompleteOptions
(Server server, User user, String commandLabel, String[] args) protected void
handleToggleWithArgs
(Server server, User user, String[] args) protected Boolean
protected void
toggleOtherPlayers
(Server server, CommandSource sender, String[] args) protected abstract void
togglePlayer
(CommandSource sender, User user, Boolean enabled) Methods inherited from class com.earth2me.essentials.commands.EssentialsCommand
getCommands, getFinalArg, getItems, getMatchingItems, getName, getNewExceptionFuture, getPlayer, getPlayer, getPlayer, getPlayer, getPlayer, getPlayer, getPlayer, getPlayers, getPlayers, getPlugins, getUsageStrings, run, run, run, run, setEssentials, setEssentialsModule, showError, tabComplete, tabComplete, tabCompleteCommand
-
Constructor Details
-
EssentialsToggleCommand
-
-
Method Details
-
handleToggleWithArgs
- Throws:
Exception
-
matchToggleArgument
-
toggleOtherPlayers
protected void toggleOtherPlayers(Server server, CommandSource sender, String[] args) throws PlayerNotFoundException, NotEnoughArgumentsException -
togglePlayer
protected abstract void togglePlayer(CommandSource sender, User user, Boolean enabled) throws NotEnoughArgumentsException - Throws:
NotEnoughArgumentsException
-
getTabCompleteOptions
protected List<String> getTabCompleteOptions(Server server, User user, String commandLabel, String[] args) - Overrides:
getTabCompleteOptions
in classEssentialsCommand
-
getTabCompleteOptions
protected List<String> getTabCompleteOptions(Server server, CommandSource sender, String commandLabel, String[] args) - Overrides:
getTabCompleteOptions
in classEssentialsCommand
-