public interface ProxyObject extends IdentifiableObject
Modifier and Type | Method and Description |
---|---|
APIRequestFuture<java.lang.Void> |
executeCommand(java.lang.String command)
Executes the given command as ConsoleSender on the proxy
|
BaseObject |
getBase() |
ProxyGroupObject |
getGroup() |
java.lang.String |
getId() |
java.net.InetAddress |
getIpAddress() |
APIRequestFuture<LogFractionObject> |
getLogFraction(long startTime) |
APIRequestFuture<LogFractionObject> |
getLogFraction(long startTime,
long endTime) |
MessageClientAddress |
getMessageAddress() |
java.lang.String |
getName() |
int |
getOnlinePlayerCount() |
java.util.List<PlayerObject> |
getOnlinePlayers() |
int |
getPort() |
java.net.InetSocketAddress |
getSocketAddress() |
void |
sendPluginMessage(PluginMessage message)
Send a plugin message to the proxy
|
APIRequestFuture<java.lang.Void> |
stop()
Stops the proxy
|
java.lang.String getName()
getName
in interface IdentifiableObject
java.lang.String getId()
getId
in interface IdentifiableObject
ProxyGroupObject getGroup()
java.util.List<PlayerObject> getOnlinePlayers()
int getOnlinePlayerCount()
BaseObject getBase()
java.net.InetSocketAddress getSocketAddress()
java.net.InetAddress getIpAddress()
int getPort()
MessageClientAddress getMessageAddress()
APIRequestFuture<java.lang.Void> executeCommand(java.lang.String command)
command
- Without leading '/'APIRequestFuture<java.lang.Void> stop()
void sendPluginMessage(PluginMessage message)
message
- The message which shall be sentAPIRequestFuture<LogFractionObject> getLogFraction(long startTime, long endTime)
startTime
- The timestamp at which the record of the log should start (0 if you want all log entries since the proxy's start)endTime
- The timestamp at which the record of the log should endAPIRequestFuture<LogFractionObject> getLogFraction(long startTime)
startTime
- The timestamp at which the record of the log should start (0 if you want all log entries since the proxy's start)