summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvilSeph <evilseph@unaligned.org>2011-06-19 06:13:52 -0400
committerEvilSeph <evilseph@unaligned.org>2011-06-19 06:34:21 -0400
commit89a524678a1b219cf6d91711d7f9b2a56e621cf8 (patch)
tree7c1dc37d49821ec630166d58cfc1610057819daa /src
parenta6e5c9722313cad63802559bd0a568911371f28c (diff)
downloadcraftbukkit-89a524678a1b219cf6d91711d7f9b2a56e621cf8.tar
craftbukkit-89a524678a1b219cf6d91711d7f9b2a56e621cf8.tar.gz
craftbukkit-89a524678a1b219cf6d91711d7f9b2a56e621cf8.tar.lz
craftbukkit-89a524678a1b219cf6d91711d7f9b2a56e621cf8.tar.xz
craftbukkit-89a524678a1b219cf6d91711d7f9b2a56e621cf8.zip
Added getOnlineMode() for the Server. Thanks Rigby!
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index af90ed4d..1da14352 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
@@ -565,4 +565,8 @@ public final class CraftServer implements Server {
configuration.setProperty("settings.spawn-radius", value);
configuration.save();
}
+
+ public boolean getOnlineMode() {
+ return this.console.onlineMode;
+ }
}