diff --git a/paper-api/src/main/java/org/bukkit/Bukkit.java b/paper-api/src/main/java/org/bukkit/Bukkit.java index 1d0fa1c36c..56f091aab8 100644 --- a/paper-api/src/main/java/org/bukkit/Bukkit.java +++ b/paper-api/src/main/java/org/bukkit/Bukkit.java @@ -243,6 +243,10 @@ public final class Bukkit { return server.getAllowFlight(); } + public static boolean isHardcore() { + return server.isHardcore(); + } + public static void shutdown() { server.shutdown(); } diff --git a/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index 361ad17d0b..54cb1d9444 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/src/main/java/org/bukkit/Server.java @@ -475,6 +475,13 @@ public interface Server extends PluginMessageRecipient { */ 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). *