public class Command
extends java.lang.Object
CommandListener| Constructor | Description |
|---|---|
Command(Connection connection,
java.lang.String command,
java.lang.String arguments) |
|
Command(Connection connection,
CommandPacket commandPacket) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getArguments() |
|
java.lang.String |
getCommand() |
|
long |
getCommandReceived() |
|
Connection |
getConnection() |
public Command(Connection connection, java.lang.String command, java.lang.String arguments)
connection - the current connection the client currently hascommand - commandarguments - command argumentspublic Command(Connection connection, CommandPacket commandPacket)
connection - the current connection the client currently hascommandPacket - CommandPacketpublic long getCommandReceived()
public Connection getConnection()
public java.lang.String getCommand()
public java.lang.String getArguments()