Add setting for proxy online mode status

TODO: Add isProxyOnlineMode check to Metrics
This commit is contained in:
Gabriele C
2016-08-05 01:03:08 +02:00
parent a55727ff06
commit f7ae11f984
4 changed files with 53 additions and 27 deletions

View File

@ -1891,7 +1891,7 @@ public final class CraftServer implements Server {
if (result == null) {
GameProfile profile = null;
// Only fetch an online UUID in online mode
if (this.getOnlineMode() || org.spigotmc.SpigotConfig.bungee) { // Spigot: bungee = online mode, for now.
if (this.getOnlineMode() || io.papermc.paper.configuration.GlobalConfiguration.get().proxies.isProxyOnlineMode()) { // Paper - Add setting for proxy online mode status
// This is potentially blocking :(
profile = this.console.getProfileCache().get(name).orElse(null);
}