public class ApiCommand extends java.lang.Object implements AnnoyingCommand
| Constructor and Description |
|---|
ApiCommand(@NotNull AnnoyingPlugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
getName()
OPTIONAL This is the name of the command |
@NotNull java.lang.String |
getPermission()
OPTIONAL This is the permission required to use the command |
@NotNull AnnoyingPlugin |
getPlugin()
The
AnnoyingPlugin that this command belongs to |
void |
onCommand(@NotNull AnnoyingSender sender)
REQUIRED This is everything that's executed when the command is run |
java.util.List<java.lang.String> |
onTabComplete(@NotNull AnnoyingSender sender)
OPTIONAL This is the tab completion for the command |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArgsPredicate, isPlayerOnly, onCommand, onTabComplete, register, unregister@Contract(pure=true)
public ApiCommand(@NotNull
@NotNull AnnoyingPlugin plugin)
@NotNull public @NotNull AnnoyingPlugin getPlugin()
AnnoyingCommandAnnoyingPlugin that this command belongs togetPlugin in interface AnnoyingCommand@NotNull public @NotNull java.lang.String getName()
AnnoyingCommandOPTIONAL This is the name of the command
If not specified, the lowercase class name will be used (Command will be removed)
Example: the command class MyEpicCommand would be registered as myepic
getName in interface AnnoyingCommand@NotNull public @NotNull java.lang.String getPermission()
AnnoyingCommandOPTIONAL This is the permission required to use the command
If not specified (or null), no permission will be required
getPermission in interface AnnoyingCommandpublic void onCommand(@NotNull
@NotNull AnnoyingSender sender)
AnnoyingCommandREQUIRED This is everything that's executed when the command is runonCommand in interface AnnoyingCommandsender - the sender of the commandpublic java.util.List<java.lang.String> onTabComplete(@NotNull
@NotNull AnnoyingSender sender)
AnnoyingCommandOPTIONAL This is the tab completion for the command
AnnoyingUtility will come in handy
onTabComplete in interface AnnoyingCommandsender - the sender of the commandCollection of suggestions