Package com.palmergames.bukkit.towny
Class TownyCommandAddonAPI
java.lang.Object
com.palmergames.bukkit.towny.TownyCommandAddonAPI
- Since:
- 0.97.0.1
- Author:
- Warriorrrr
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
addSubCommand
(@NotNull AddonCommand command) static boolean
addSubCommand
(@NotNull TownyCommandAddonAPI.CommandType commandType, @NotNull String subCommandName, @NotNull org.bukkit.command.CommandExecutor commandExecutor) static @Nullable AddonCommand
getAddonCommand
(@NotNull TownyCommandAddonAPI.CommandType commandType, @NotNull String name) getTabCompletes
(@NotNull TownyCommandAddonAPI.CommandType commandType, @NotNull List<String> addFrom) static boolean
hasCommand
(@NotNull TownyCommandAddonAPI.CommandType commandType, @NotNull String name) static boolean
removeSubCommand
(@NotNull AddonCommand command) static boolean
removeSubCommand
(@NotNull TownyCommandAddonAPI.CommandType commandType, @NotNull String name)
-
Constructor Details
-
TownyCommandAddonAPI
public TownyCommandAddonAPI()
-
-
Method Details
-
addSubCommand
public static boolean addSubCommand(@NotNull @NotNull TownyCommandAddonAPI.CommandType commandType, @NotNull @NotNull String subCommandName, @NotNull @NotNull org.bukkit.command.CommandExecutor commandExecutor) -
addSubCommand
-
removeSubCommand
public static boolean removeSubCommand(@NotNull @NotNull TownyCommandAddonAPI.CommandType commandType, @NotNull @NotNull String name) -
removeSubCommand
-
hasCommand
public static boolean hasCommand(@NotNull @NotNull TownyCommandAddonAPI.CommandType commandType, @NotNull @NotNull String name) -
getAddonCommand
@Nullable public static @Nullable AddonCommand getAddonCommand(@NotNull @NotNull TownyCommandAddonAPI.CommandType commandType, @NotNull @NotNull String name) - Parameters:
commandType
- The commandType to check for.name
- The name of the addon command to check for.- Returns:
- The command or null if it does not exist.
-
getTabCompletes
public static List<String> getTabCompletes(@NotNull @NotNull TownyCommandAddonAPI.CommandType commandType, @NotNull @NotNull List<String> addFrom) -
getAddedCommands
-