public class ServerPingEvent extends Object implements ServerEvent
| Constructor and Description |
|---|
ServerPingEvent(InetSocketAddress address,
Server server) |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getAddress() |
GameMode |
getDefaultGamemode() |
int |
getMaxPlayerCount() |
String |
getMotd() |
int |
getPlayerCount() |
String |
getSubMotd() |
void |
setDefaultGamemode(GameMode defaultGamemode) |
void |
setMaxPlayerCount(int maxPlayerCount) |
void |
setMotd(String motd) |
void |
setPlayerCount(int playerCount) |
void |
setSubMotd(String subMotd) |
public ServerPingEvent(InetSocketAddress address, Server server)
public InetSocketAddress getAddress()
public String getMotd()
public void setMotd(String motd)
public String getSubMotd()
public void setSubMotd(String subMotd)
public int getMaxPlayerCount()
public void setMaxPlayerCount(int maxPlayerCount)
public int getPlayerCount()
public void setPlayerCount(int playerCount)
public GameMode getDefaultGamemode()
public void setDefaultGamemode(GameMode defaultGamemode)
Copyright © 2017–2019 NukkitX. All rights reserved.