fix compile

This commit is contained in:
Ben Kerllenevich
2022-06-09 07:26:34 -04:00
parent 39fae5883d
commit 012e379edb
4 changed files with 9 additions and 9 deletions

View File

@@ -192,7 +192,7 @@ index c3ca919ed60f027d6116a85cb79e3b6cd3bf1619..9df1401eb9361df0532b8f5fbfbb46e9
public SystemReport fillSystemReport(SystemReport details) {
diff --git a/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java b/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java
index afc16bd5a2056d1ee8ce290ec1a6f67c0ac9aedb..6bcd1d35169c7bbe647cd7b829ca2785561750cb 100644
index afc16bd5a2056d1ee8ce290ec1a6f67c0ac9aedb..4fbeee4bede41d96b92c6cdd6503362a2c4dd5fb 100644
--- a/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java
+++ b/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java
@@ -282,11 +282,12 @@ public class DedicatedServer extends MinecraftServer implements ServerInterface
@@ -201,7 +201,7 @@ index afc16bd5a2056d1ee8ce290ec1a6f67c0ac9aedb..6bcd1d35169c7bbe647cd7b829ca2785
// Spigot start
- if (org.spigotmc.SpigotConfig.bungee) {
- DedicatedServer.LOGGER.warn("Whilst this makes it possible to use BungeeCord, unless access to your server is properly restricted, it also opens up the ability for hackers to connect with any username they choose.");
+ if (com.destroystokyo.paper.PaperConfig.isProxyOnlineMode()) { // Purpur
+ if (io.papermc.paper.configuration.GlobalConfiguration.get().proxies.isProxyOnlineMode()) { // Purpur
+ DedicatedServer.LOGGER.warn("Whilst this makes it possible to use BungeeCord or Velocity, unless access to your server is properly restricted, it also opens up the ability for hackers to connect with any username they choose."); // Purpur
DedicatedServer.LOGGER.warn("Please see http://www.spigotmc.org/wiki/firewall-guide/ for further information.");
} else {