diff options
author | EvilSeph <evilseph@gmail.com> | 2012-10-29 01:35:31 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-10-29 01:46:14 -0400 |
commit | f4cdf8fe98ece2f8f6dbdee907c820434d474412 (patch) | |
tree | 7fb40c736f09906ce1c935b542e6efb8f25f70e8 /src | |
parent | 442b7a69f1130d0114226d30d081cfe6dc6d8e0a (diff) | |
download | craftbukkit-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.java | 4 |
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"); } |