13
0
geforkt von Mirrors/Paper

Added Server.getServerId() for ID purposes.

By: sk89q <the.sk89q@gmail.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2011-03-26 01:39:23 -07:00
Ursprung fa0a51520c
Commit ac67e06163

Datei anzeigen

@ -182,21 +182,23 @@ public final class CraftServer implements Server {
return this.getConfigString("server-ip", ""); return this.getConfigString("server-ip", "");
} }
public String getServerName() public String getServerName() {
{
return this.getConfigString("server-name", "Unknown Server"); return this.getConfigString("server-name", "Unknown Server");
} }
public String getServerId() {
return this.getConfigString("server-id", "unnamed");
}
// NOTE: Temporary calls through to server.properies until its replaced // NOTE: Temporary calls through to server.properies until its replaced
private String getConfigString(String variable, String defaultValue) private String getConfigString(String variable, String defaultValue) {
{
return this.console.d.a(variable, defaultValue); return this.console.d.a(variable, defaultValue);
} }
private int getConfigInt(String variable, int defaultValue) private int getConfigInt(String variable, int defaultValue) {
{
return this.console.d.a(variable, defaultValue); return this.console.d.a(variable, defaultValue);
} }
// End Temporary calls // End Temporary calls
public PluginManager getPluginManager() { public PluginManager getPluginManager() {