@CommandDesc(name="op", permission="trident.op") public class OpCommand extends Command
Constructor and Description |
---|
OpCommand() |
Modifier and Type | Method and Description |
---|---|
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
|
handle, notifyOverriden
public OpCommand()
public void handlePlayer(Player player, String arguments, String alias)
Command
handlePlayer
in class Command
player
- player executing the commandarguments
- may be nullalias
- the alias of the commandpublic void handleConsole(Console sender, String arguments, String alias)
Command
handleConsole
in class Command
sender
- the command senderarguments
- may be nullalias
- the alias for the commandCopyright © 2016. All rights reserved.