diff options
author | feildmaster <admin@feildmaster.com> | 2012-07-03 18:00:37 -0500 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-07-03 18:00:37 -0500 |
commit | d7272f42efe17e370000dacea5e52bf6ce94bfd4 (patch) | |
tree | f0dff79e8f1488cd10b1ad938d6ff94b621d202e /src/main | |
parent | 00efc8c464d5af5b2d3d36be839ba0533af34484 (diff) | |
download | craftbukkit-d7272f42efe17e370000dacea5e52bf6ce94bfd4.tar craftbukkit-d7272f42efe17e370000dacea5e52bf6ce94bfd4.tar.gz craftbukkit-d7272f42efe17e370000dacea5e52bf6ce94bfd4.tar.lz craftbukkit-d7272f42efe17e370000dacea5e52bf6ce94bfd4.tar.xz craftbukkit-d7272f42efe17e370000dacea5e52bf6ce94bfd4.zip |
Implement getMotd, and reload the motd. Adds BUKKIT-1799
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftServer.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index f73a1e50..43f197de 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -399,10 +399,10 @@ public final class CraftServer implements Server { public boolean getWarnOnOverload() { return this.configuration.getBoolean("settings.warn-on-overload"); } - + public boolean getQueryPlugins() { return this.configuration.getBoolean("settings.query-plugins"); - } + } public boolean hasWhitelist() { return this.getConfigBoolean("white-list", false); @@ -504,6 +504,7 @@ public final class CraftServer implements Server { console.spawnAnimals = config.getBoolean("spawn-animals", console.spawnAnimals); console.pvpMode = config.getBoolean("pvp", console.pvpMode); console.allowFlight = config.getBoolean("allow-flight", console.allowFlight); + console.motd = config.getString("motd", console.motd); monsterSpawn = configuration.getInt("spawn-limits.monsters"); animalSpawn = configuration.getInt("spawn-limits.animals"); waterAnimalSpawn = configuration.getInt("spawn-limits.water-animals"); @@ -1194,4 +1195,8 @@ public final class CraftServer implements Server { public boolean isPrimaryThread() { return Thread.currentThread().equals(console.primaryThread); } + + public String getMotd() { + return console.motd; + } } |