mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-29 19:52:55 +01:00
Add isHardcore API to check if the server is in hardcore mode or not. Adds BUKKIT-2707
This commit is contained in:
parent
442b7a69f1
commit
f4cdf8fe98
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue