From f4cdf8fe98ece2f8f6dbdee907c820434d474412 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Mon, 29 Oct 2012 01:35:31 -0400 Subject: [PATCH] Add isHardcore API to check if the server is in hardcore mode or not. Adds BUKKIT-2707 --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 2cd7d0d114..33bdc1220f 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -946,6 +946,10 @@ public final class CraftServer implements Server { return console.getAllowFlight(); } + public boolean isHardcore() { + return console.isHardcore(); + } + public boolean useExactLoginLocation() { return configuration.getBoolean("settings.use-exact-login-location"); }