public abstract class Command extends Object
CommandDesc
to
process executed commandsConstructor and Description |
---|
Command() |
Modifier and Type | Method and Description |
---|---|
void |
handle(CommandIssuer sender,
String arguments,
String alias)
Called when this cmd is invoked by a player, console, or other sender
|
void |
handleConsole(Console sender,
String arguments,
String alias)
Called when this cmd is invoked by the console
|
void |
handlePlayer(Player player,
String arguments,
String alias)
Called when this cmd is invoked by a player
|
void |
notifyOverriden()
Called if this cmd is overriden by another
|
public Command()
public void handlePlayer(Player player, String arguments, String alias)
player
- player executing the commandarguments
- may be nullalias
- the alias of the commandpublic void handleConsole(Console sender, String arguments, String alias)
sender
- the command senderarguments
- may be nullalias
- the alias for the commandpublic void handle(CommandIssuer sender, String arguments, String alias)
sender
- the command senderarguments
- may be nullalias
- the command aliaspublic void notifyOverriden()
Copyright © 2016. All rights reserved.