Package xyz.srnyx.annoyingapi.command
Class DisabledCommand
java.lang.Object
xyz.srnyx.javautilities.parents.Stringable
xyz.srnyx.annoyingapi.parents.Registrable
xyz.srnyx.annoyingapi.command.AnnoyingCommand
xyz.srnyx.annoyingapi.command.DisabledCommand
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,Annoyable
Represents a command that is disabled by the API
-
Nested Class Summary
Nested classes/interfaces inherited from class xyz.srnyx.annoyingapi.parents.Registrable
Registrable.Ignore -
Constructor Summary
ConstructorsConstructorDescriptionDisabledCommand(@NotNull AnnoyingPlugin plugin) Constructor forDisabledCommand -
Method Summary
Modifier and TypeMethodDescription@NotNull AnnoyingPluginTheAnnoyingPluginthat this command belongs tovoidonCommand(@NotNull AnnoyingSender sender) REQUIREDThis is everything that's executed when the command is runMethods inherited from class xyz.srnyx.annoyingapi.command.AnnoyingCommand
getArgsPredicate, getName, getPermission, isPlayerOnly, onCommand, onTabComplete, onTabComplete, register, unregisterMethods inherited from class xyz.srnyx.annoyingapi.parents.Registrable
isRegistered, setRegisteredMethods inherited from class xyz.srnyx.javautilities.parents.Stringable
toString, toString, toString, toString, toString
-
Constructor Details
-
DisabledCommand
Constructor forDisabledCommand- Parameters:
plugin- theAnnoyingPlugininstance
-
-
Method Details
-
getAnnoyingPlugin
TheAnnoyingPluginthat this command belongs to- Returns:
- the plugin instance
-
onCommand
REQUIREDThis is everything that's executed when the command is run- Specified by:
onCommandin classAnnoyingCommand- Parameters:
sender- the sender of the command
-