summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2012-10-29 01:35:31 -0400
committerEvilSeph <evilseph@gmail.com>2012-10-29 01:46:14 -0400
commitf4cdf8fe98ece2f8f6dbdee907c820434d474412 (patch)
tree7fb40c736f09906ce1c935b542e6efb8f25f70e8 /src
parent442b7a69f1130d0114226d30d081cfe6dc6d8e0a (diff)
downloadcraftbukkit-f4cdf8fe98ece2f8f6dbdee907c820434d474412.tar
craftbukkit-f4cdf8fe98ece2f8f6dbdee907c820434d474412.tar.gz
craftbukkit-f4cdf8fe98ece2f8f6dbdee907c820434d474412.tar.lz
craftbukkit-f4cdf8fe98ece2f8f6dbdee907c820434d474412.tar.xz
craftbukkit-f4cdf8fe98ece2f8f6dbdee907c820434d474412.zip
Add isHardcore API to check if the server is in hardcore mode or not. Adds BUKKIT-2707
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 2cd7d0d1..33bdc122 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");
}