mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-08 08:02:13 -07:00
Add isHardcore API to check if the server is in hardcore mode or not. Adds BUKKIT-2707
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user