public interface Command
| Modifier and Type | Method and Description |
|---|---|
@NotNull com.datasiqn.resultapi.Result<com.datasiqn.resultapi.None,List<String>> |
execute(CommandContext context)
Executes this command executor
|
@NotNull String[] |
getAliases()
Gets the aliases of this command
|
@Nullable String |
getDescription()
Gets the description of this command
|
@NotNull String |
getName()
Gets this command's name
|
@Nullable String |
getPermissionString()
Gets the permission for this command, registered in the plugin.yml file
|
@NotNull List<String> |
getUsages()
Gets the usages for this command
|
boolean |
hasDescription()
Gets whether this command has a description or not
|
boolean |
hasPermission()
Gets whether this command has a permission or not
|
default @NotNull TabComplete |
tabComplete(CommandContext context)
Gets the tabcomplete for this command executor
|
@NotNull @NotNull String getName()
@NotNull @NotNull String[] getAliases()
@NotNull @NotNull com.datasiqn.resultapi.Result<com.datasiqn.resultapi.None,List<String>> execute(CommandContext context)
context - The context in which this command was executed@NotNull default @NotNull TabComplete tabComplete(CommandContext context)
context - The context in which this command was tab completed@Nullable @Nullable String getPermissionString()
boolean hasPermission()
true if this command has a permission, false otherwise@Nullable @Nullable String getDescription()
boolean hasDescription()
true if this command has a description, false otherwiseCopyright © 2024. All rights reserved.