Package me.bimmr.bimmcore.commands
Class SubCommand
- java.lang.Object
-
- me.bimmr.bimmcore.commands.SubCommand
-
- Direct Known Subclasses:
SuperCommand
,SuperSubCommand
public abstract class SubCommand extends java.lang.Object
The command class - Used for commands such as /McInfected Join
-
-
Constructor Summary
Constructors Constructor Description SubCommand(java.lang.String name)
-
Method Summary
Modifier and Type Method Description abstract void
execute(org.bukkit.command.CommandSender sender, java.lang.String[] args)
abstract java.util.List<java.lang.String>
getAliases()
abstract java.lang.String
getCommandExample()
abstract FancyMessage
getFancyMessage()
java.lang.String
getName()
abstract java.lang.String
getPermission()
abstract java.util.List<java.lang.String>
getTabs(java.lang.String[] args)
boolean
hasPermission(org.bukkit.command.CommandSender sender)
-
-
-
Method Detail
-
execute
public abstract void execute(org.bukkit.command.CommandSender sender, java.lang.String[] args) throws org.bukkit.command.CommandException
- Throws:
org.bukkit.command.CommandException
-
getAliases
public abstract java.util.List<java.lang.String> getAliases()
-
getCommandExample
public abstract java.lang.String getCommandExample()
-
getFancyMessage
public abstract FancyMessage getFancyMessage()
-
getName
public java.lang.String getName()
-
getPermission
public abstract java.lang.String getPermission()
-
getTabs
public abstract java.util.List<java.lang.String> getTabs(java.lang.String[] args)
-
hasPermission
public final boolean hasPermission(org.bukkit.command.CommandSender sender)
-
-