mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
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
c73a3c02f0
commit
1321866724
2 changed files with 11 additions and 0 deletions
|
@ -243,6 +243,10 @@ public final class Bukkit {
|
||||||
return server.getAllowFlight();
|
return server.getAllowFlight();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean isHardcore() {
|
||||||
|
return server.isHardcore();
|
||||||
|
}
|
||||||
|
|
||||||
public static void shutdown() {
|
public static void shutdown() {
|
||||||
server.shutdown();
|
server.shutdown();
|
||||||
}
|
}
|
||||||
|
|
|
@ -475,6 +475,13 @@ public interface Server extends PluginMessageRecipient {
|
||||||
*/
|
*/
|
||||||
public boolean getAllowFlight();
|
public boolean getAllowFlight();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets whether the server is in hardcore mode or not.
|
||||||
|
*
|
||||||
|
* @return Whether this server is in hardcore mode or not.
|
||||||
|
*/
|
||||||
|
public boolean isHardcore();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets whether to use vanilla (false) or exact behaviour (true).
|
* Gets whether to use vanilla (false) or exact behaviour (true).
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue