public class MainCommand
extends java.lang.Object
implements org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MAIN_PERMISSION
|
static java.util.ArrayList<SubCommand>
|
subCommands
|
Constructor and Description |
---|
MainCommand()
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<SubCommand>
|
getCommands(SubCommand.CommandCategory category,
org.bukkit.entity.Player player) |
static java.util.List<java.lang.String> |
helpMenu(org.bukkit.entity.Player player,
SubCommand.CommandCategory category,
int page) |
static boolean |
no_permission(org.bukkit.entity.Player player,
java.lang.String permission) |
boolean |
onCommand(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command cmd,
java.lang.String commandLabel,
java.lang.String[] args) |
java.util.List<java.lang.String> |
onTabComplete(org.bukkit.command.CommandSender commandSender,
org.bukkit.command.Command command,
java.lang.String s,
java.lang.String[] strings) |
public static final java.lang.String MAIN_PERMISSION
public static java.util.ArrayList<SubCommand> subCommands
public static boolean no_permission(org.bukkit.entity.Player player, java.lang.String permission)
public static java.util.List<SubCommand> getCommands(SubCommand.CommandCategory category, org.bukkit.entity.Player player)
public static java.util.List<java.lang.String> helpMenu(org.bukkit.entity.Player player, SubCommand.CommandCategory category, int page)
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, java.lang.String commandLabel, java.lang.String[] args)
onCommand
in interface org.bukkit.command.CommandExecutor
public java.util.List<java.lang.String> onTabComplete(org.bukkit.command.CommandSender commandSender, org.bukkit.command.Command command, java.lang.String s, java.lang.String[] strings)
onTabComplete
in interface org.bukkit.command.TabCompleter