Class ToggleCommandModule
java.lang.Object
dev.esophose.playerparticles.command.ToggleCommandModule
- All Implemented Interfaces:
CommandModule
public class ToggleCommandModule extends java.lang.Object implements CommandModule
-
Constructor Summary
Constructors Constructor Description ToggleCommandModule()
-
Method Summary
Modifier and Type Method Description boolean
canConsoleExecute()
java.lang.String
getArguments()
Gets any arguments this command hasjava.lang.String
getDescriptionKey()
Gets the locale description key of this commandjava.lang.String
getName()
Gets the name of this commandvoid
onCommandExecute(PPlayer pplayer, java.lang.String[] args)
Called when this command gets executedjava.util.List<java.lang.String>
onTabComplete(PPlayer pplayer, java.lang.String[] args)
Called when a player tries to tab complete this commandboolean
requiresEffectsAndStyles()
True if this command requires the player to have any effects and styles
-
Constructor Details
-
ToggleCommandModule
public ToggleCommandModule()
-
-
Method Details
-
onCommandExecute
Description copied from interface:CommandModule
Called when this command gets executed- Specified by:
onCommandExecute
in interfaceCommandModule
- Parameters:
pplayer
- The PPlayer who executed this commandargs
- The arguments to this command
-
onTabComplete
Description copied from interface:CommandModule
Called when a player tries to tab complete this command- Specified by:
onTabComplete
in interfaceCommandModule
- Parameters:
pplayer
- The PPlayer who is tab completing this commandargs
- Arguments typed so far- Returns:
- A list of possible argument values
-
getName
public java.lang.String getName()Description copied from interface:CommandModule
Gets the name of this command- Specified by:
getName
in interfaceCommandModule
- Returns:
- The name of this command
-
getDescriptionKey
public java.lang.String getDescriptionKey()Description copied from interface:CommandModule
Gets the locale description key of this command- Specified by:
getDescriptionKey
in interfaceCommandModule
- Returns:
- The locale description key of this command
-
getArguments
public java.lang.String getArguments()Description copied from interface:CommandModule
Gets any arguments this command has- Specified by:
getArguments
in interfaceCommandModule
- Returns:
- The arguments this command has
-
requiresEffectsAndStyles
public boolean requiresEffectsAndStyles()Description copied from interface:CommandModule
True if this command requires the player to have any effects and styles- Specified by:
requiresEffectsAndStyles
in interfaceCommandModule
- Returns:
- If the player must have effects and styles to use this command
-
canConsoleExecute
public boolean canConsoleExecute()- Specified by:
canConsoleExecute
in interfaceCommandModule
- Returns:
- true if this command can be executed from console, otherwise false
-