From 63d419d302b2d8ec9d4f90f2810e0122190834fd Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 18 Jun 2022 20:49:03 +1000 Subject: [PATCH] #1066: Add missing server properties methods from 1.19 By: Doc --- .../java/org/bukkit/craftbukkit/CraftServer.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 398c05b392..f309c31fd6 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -1395,6 +1395,16 @@ public final class CraftServer implements Server { saveConfig(); } + @Override + public boolean shouldSendChatPreviews() { + return this.getServer().previewsChat(); + } + + @Override + public boolean isEnforcingSecureProfiles() { + return this.getServer().enforceSecureProfile(); + } + @Override public boolean getHideOnlinePlayers() { return console.hidesOnlinePlayers(); @@ -1820,6 +1830,11 @@ public final class CraftServer implements Server { return new CraftMerchantCustom(title == null ? InventoryType.MERCHANT.getDefaultTitle() : title); } + @Override + public int getMaxChainedNeighborUpdates() { + return this.getServer().getMaxChainedNeighborUpdates(); + } + @Override public HelpMap getHelpMap() { return helpMap;