From 250810823d230a01f8bc06cc5e8d8b7db4bdc0c0 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 19 Jun 2011 06:13:28 -0400 Subject: [PATCH] Added getOnlineMode() for the Server. Thanks Rigby! By: EvilSeph --- paper-api/src/main/java/org/bukkit/Server.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index ac43591a60..abe41f056c 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/src/main/java/org/bukkit/Server.java @@ -285,4 +285,11 @@ public interface Server { * @param value New spawn radius, or 0 if none */ public void setSpawnRadius(int value); + + /** + * Gets whether the Server is in online mode or not. + * + * @return Whether the server is in online mode. + */ + public boolean getOnlineMode(); }