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
public class DisabledCommand extends AnnoyingCommand
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
Constructors Constructor Description DisabledCommand(@NotNull AnnoyingPlugin plugin)Constructor forDisabledCommand
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull AnnoyingPlugingetAnnoyingPlugin()TheAnnoyingPluginthat this command belongs tovoidonCommand(@NotNull AnnoyingSender sender)REQUIREDThis is everything that's executed when the command is run-
Methods inherited from class xyz.srnyx.annoyingapi.command.AnnoyingCommand
getArgsPredicate, getName, getPermission, isPlayerOnly, onCommand, onTabComplete, onTabComplete, register, unregister
-
Methods inherited from class xyz.srnyx.annoyingapi.parents.Registrable
isRegistered, setRegistered
-
-
-
-
Constructor Detail
-
DisabledCommand
public DisabledCommand(@NotNull @NotNull AnnoyingPlugin plugin)Constructor forDisabledCommand- Parameters:
plugin- theAnnoyingPlugininstance
-
-
Method Detail
-
getAnnoyingPlugin
@NotNull public @NotNull AnnoyingPlugin getAnnoyingPlugin()
TheAnnoyingPluginthat this command belongs to- Returns:
- the plugin instance
-
onCommand
public void onCommand(@NotNull @NotNull AnnoyingSender sender)REQUIREDThis is everything that's executed when the command is run- Specified by:
onCommandin classAnnoyingCommand- Parameters:
sender- the sender of the command
-
-