Add isHardcore API to check if the server is in hardcore mode or not. Adds BUKKIT-2707
By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
parent
cadb8c3aa7
commit
9ddec3654f
1 changed files with 4 additions and 0 deletions
|
@ -946,6 +946,10 @@ public final class CraftServer implements Server {
|
||||||
return console.getAllowFlight();
|
return console.getAllowFlight();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isHardcore() {
|
||||||
|
return console.isHardcore();
|
||||||
|
}
|
||||||
|
|
||||||
public boolean useExactLoginLocation() {
|
public boolean useExactLoginLocation() {
|
||||||
return configuration.getBoolean("settings.use-exact-login-location");
|
return configuration.getBoolean("settings.use-exact-login-location");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue