summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/Bukkit.java4
-rw-r--r--src/main/java/org/bukkit/Server.java7
2 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java
index 1d0fa1c3..56f091aa 100644
--- a/src/main/java/org/bukkit/Bukkit.java
+++ b/src/main/java/org/bukkit/Bukkit.java
@@ -243,6 +243,10 @@ public final class Bukkit {
return server.getAllowFlight();
}
+ public static boolean isHardcore() {
+ return server.isHardcore();
+ }
+
public static void shutdown() {
server.shutdown();
}
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
index 361ad17d..54cb1d94 100644
--- a/src/main/java/org/bukkit/Server.java
+++ b/src/main/java/org/bukkit/Server.java
@@ -476,6 +476,13 @@ public interface Server extends PluginMessageRecipient {
public boolean getAllowFlight();
/**
+ * Gets whether the server is in hardcore mode or not.
+ *
+ * @return Whether this server is in hardcore mode or not.
+ */
+ public boolean isHardcore();
+
+ /**
* Gets whether to use vanilla (false) or exact behaviour (true).
*
* Vanilla behaviour: check for collisions and move the player if needed.