2017-03-25 06:22:02 +01:00
|
|
|
From 44efa70e5f28474993c7f5fa1ac98e9db8c25ecb Mon Sep 17 00:00:00 2001
|
2016-08-13 01:08:53 +02:00
|
|
|
From: Gabriele C <sgdc3.mail@gmail.com>
|
|
|
|
Date: Fri, 5 Aug 2016 01:03:08 +0200
|
|
|
|
Subject: [PATCH] Add setting for proxy online mode status
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/com/destroystokyo/paper/PaperConfig.java b/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
2017-03-25 06:22:02 +01:00
|
|
|
index 5fbaa99e9..d1d50f0db 100644
|
2016-08-13 01:08:53 +02:00
|
|
|
--- a/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
|
|
|
+++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
2017-03-25 06:22:02 +01:00
|
|
|
@@ -234,4 +234,9 @@ public class PaperConfig {
|
2016-08-13 01:08:53 +02:00
|
|
|
private static void saveEmptyScoreboardTeams() {
|
|
|
|
saveEmptyScoreboardTeams = getBoolean("settings.save-empty-scoreboard-teams", false);
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public static boolean bungeeOnlineMode = true;
|
|
|
|
+ private static void bungeeOnlineMode() {
|
|
|
|
+ bungeeOnlineMode = getBoolean("settings.bungee-online-mode", true);
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/NameReferencingFileConverter.java b/src/main/java/net/minecraft/server/NameReferencingFileConverter.java
|
2017-03-25 04:18:58 +01:00
|
|
|
index 2ff8a6da0..52e736080 100644
|
2016-08-13 01:08:53 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/NameReferencingFileConverter.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/NameReferencingFileConverter.java
|
|
|
|
@@ -65,7 +65,8 @@ public class NameReferencingFileConverter {
|
|
|
|
}
|
|
|
|
}), String.class);
|
|
|
|
|
|
|
|
- if (minecraftserver.getOnlineMode() || org.spigotmc.SpigotConfig.bungee) { // Spigot: bungee = online mode, for now.
|
|
|
|
+ if (minecraftserver.getOnlineMode()
|
|
|
|
+ || (org.spigotmc.SpigotConfig.bungee && com.destroystokyo.paper.PaperConfig.bungeeOnlineMode)) { // Spigot: bungee = online mode, for now. // Paper - Handle via setting
|
|
|
|
minecraftserver.getGameProfileRepository().findProfilesByNames(astring, Agent.MINECRAFT, profilelookupcallback);
|
|
|
|
} else {
|
|
|
|
String[] astring1 = astring;
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2017-03-25 04:18:58 +01:00
|
|
|
index 8cb8cbe2d..1bbce7a78 100644
|
2016-08-13 01:08:53 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2017-01-08 23:43:08 +01:00
|
|
|
@@ -1336,7 +1336,8 @@ public final class CraftServer implements Server {
|
2016-08-13 01:08:53 +02:00
|
|
|
// Spigot Start
|
|
|
|
GameProfile profile = null;
|
|
|
|
// Only fetch an online UUID in online mode
|
|
|
|
- if ( MinecraftServer.getServer().getOnlineMode() || org.spigotmc.SpigotConfig.bungee )
|
|
|
|
+ if ( MinecraftServer.getServer().getOnlineMode()
|
|
|
|
+ || (org.spigotmc.SpigotConfig.bungee && com.destroystokyo.paper.PaperConfig.bungeeOnlineMode)) // Paper - Handle via setting
|
|
|
|
{
|
|
|
|
profile = console.getUserCache().getProfile( name );
|
|
|
|
}
|
|
|
|
--
|
2017-03-25 04:18:58 +01:00
|
|
|
2.12.0.windows.1
|
2016-08-13 01:08:53 +02:00
|
|
|
|