public abstract class SubCommand
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SubCommand.CommandCategory
|
Modifier and Type | Field and Description |
---|---|
java.lang.String |
alias
Alias
|
SubCommand.CommandCategory
|
category
|
java.lang.String |
cmd
Command
|
java.lang.String |
description
Simple description
|
boolean |
isPlayer
|
CommandPermission
|
permission
Permission node
|
java.lang.String |
usage
Command usage
|
Constructor and Description |
---|
SubCommand(Command command,
java.lang.String description,
java.lang.String usage,
SubCommand.CommandCategory category,
boolean isPlayer) |
SubCommand(java.lang.String cmd,
java.lang.String permission,
java.lang.String description,
java.lang.String usage,
java.lang.String alias,
SubCommand.CommandCategory category,
boolean isPlayer) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
execute(org.bukkit.entity.Player plr,
java.lang.String... args)
Execute.
|
void |
executeConsole(java.lang.String... args)
|
boolean |
sendMessage(org.bukkit.entity.Player plr,
C c,
java.lang.String... args)
Send a message
|
public boolean isPlayer
public java.lang.String cmd
public CommandPermission permission
public java.lang.String description
public java.lang.String alias
public java.lang.String usage
public SubCommand.CommandCategory category
public SubCommand(java.lang.String cmd, java.lang.String permission, java.lang.String description, java.lang.String usage, java.lang.String alias, SubCommand.CommandCategory category, boolean isPlayer)
cmd
- Command /plot {cmd} <-- That!permission
- Permission Nodedescription
- Simple descriptionusage
- Usage description: /plot command {args...}alias
- Command aliascategory
- CommandCategory. Pick whichever closests to what you want.
public SubCommand(Command command, java.lang.String description, java.lang.String usage, SubCommand.CommandCategory category, boolean isPlayer)
command
- Command /plot {cmd} <-- That!description
- Simple descriptionusage
- Usage description: /plot command {args...}category
- CommandCategory. Pick whichever closests to what you want.
public abstract boolean execute(org.bukkit.entity.Player plr, java.lang.String... args)
plr
- executorargs
- argumentspublic void executeConsole(java.lang.String... args)
public boolean sendMessage(org.bukkit.entity.Player plr, C c, java.lang.String... args)
plr
-c
-args
-