Package com.booksaw.betterTeams
Class BooksawCommand
java.lang.Object
org.bukkit.command.Command
org.bukkit.command.defaults.BukkitCommand
com.booksaw.betterTeams.BooksawCommand
public class BooksawCommand
extends org.bukkit.command.defaults.BukkitCommand
Used to register a command which uses the sub command system
- Author:
- booksaw
-
Field Summary
Fields inherited from class org.bukkit.command.Command
description, timings, usageMessage
-
Constructor Summary
ConstructorsConstructorDescriptionBooksawCommand
(String command, SubCommand subCommand, String permission, String description, List<String> alises) -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkPointers
(@NotNull org.bukkit.command.CommandSender sender, String label, String[] args) boolean
void
runExecution
(org.bukkit.command.CommandSender sender, String label, String[] args) void
setSubCommand
(SubCommand subCommand) tabComplete
(@NotNull org.bukkit.command.CommandSender sender, @NotNull String label, String[] args) Methods inherited from class org.bukkit.command.Command
broadcastCommandMessage, broadcastCommandMessage, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getUsage, isRegistered, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, testPermission, testPermissionSilent, toString, unregister
-
Constructor Details
-
BooksawCommand
-
-
Method Details
-
execute
public boolean execute(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String label, String[] args) - Specified by:
execute
in classorg.bukkit.command.Command
-
runExecution
-
tabComplete
@NotNull public @NotNull List<String> tabComplete(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String label, String[] args) - Overrides:
tabComplete
in classorg.bukkit.command.Command
-
checkPointers
-
getSubCommand
-
setSubCommand
-