diff options
author | sk89q <the.sk89q@gmail.com> | 2011-03-26 01:39:23 -0700 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-03-26 01:40:15 -0700 |
commit | 49955d5a1d5e4fb5a413219e4f893da919116977 (patch) | |
tree | d66ab655d934c121e5857849feddac9cb33131e0 /src | |
parent | 5ee2d6790334668e4246f160e01f0c8d624fb288 (diff) | |
download | craftbukkit-49955d5a1d5e4fb5a413219e4f893da919116977.tar craftbukkit-49955d5a1d5e4fb5a413219e4f893da919116977.tar.gz craftbukkit-49955d5a1d5e4fb5a413219e4f893da919116977.tar.lz craftbukkit-49955d5a1d5e4fb5a413219e4f893da919116977.tar.xz craftbukkit-49955d5a1d5e4fb5a413219e4f893da919116977.zip |
Added Server.getServerId() for ID purposes.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftServer.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index da310219..1ed2b24f 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -182,21 +182,23 @@ public final class CraftServer implements Server { return this.getConfigString("server-ip", ""); } - public String getServerName() - { + public String getServerName() { 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 - private String getConfigString(String variable, String defaultValue) - { + private String getConfigString(String variable, String 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); } + // End Temporary calls public PluginManager getPluginManager() { |