Mineplex2018-withcommit/Plugins/Mineplex.ServerMonitor/src/mineplex/servermonitor/MinecraftPingOptions.java
Jonathan Williams 6472194d44 Optimized queries to retrieve and update player information by removing inner join calls on the account.
Added account id retrieval on login.
Added account id caching in redis.
2015-03-25 15:10:59 -07:00

46 lines
937 B
Java

package mineplex.servermonitor;
public class MinecraftPingOptions
{
private String hostname;
private int port = 25565;
private int timeout = 2000;
private String charset = "UTF-8";
public MinecraftPingOptions setHostname(String hostname) {
this.hostname = hostname;
return this;
}
public MinecraftPingOptions setPort(int port) {
this.port = port;
return this;
}
public MinecraftPingOptions setTimeout(int timeout) {
this.timeout = timeout;
return this;
}
public MinecraftPingOptions setCharset(String charset) {
this.charset = charset;
return this;
}
public String getHostname() {
return this.hostname;
}
public int getPort() {
return this.port;
}
public int getTimeout() {
return this.timeout;
}
public String getCharset() {
return this.charset;
}
}