Add isHardcore API to check if the server is in hardcore mode or not. Adds BUKKIT-2707

This commit is contained in:
EvilSeph 2012-10-29 01:35:31 -04:00
parent 442b7a69f1
commit f4cdf8fe98

View File

@ -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");
}