From d0177ce055a34fa33d0336087b9ab7956e44f589 Mon Sep 17 00:00:00 2001 From: ME1312 Date: Tue, 13 Apr 2021 17:35:06 -0400 Subject: [PATCH] More debugging! --- .../src/net/ME1312/SubServers/Bungee/SubProxy.java | 2 +- SubServers.Sync/src/net/ME1312/SubServers/Sync/ExProxy.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SubServers.Bungee/src/net/ME1312/SubServers/Bungee/SubProxy.java b/SubServers.Bungee/src/net/ME1312/SubServers/Bungee/SubProxy.java index 4bd2bd09..1a910901 100644 --- a/SubServers.Bungee/src/net/ME1312/SubServers/Bungee/SubProxy.java +++ b/SubServers.Bungee/src/net/ME1312/SubServers/Bungee/SubProxy.java @@ -1054,7 +1054,7 @@ public final class SubProxy extends BungeeCommon implements Listener { } if (!state.servers.isEmpty()) { - Logger.get("SFD").info("Triggered Fallback for " + e.getPlayer().getName() + " from " + e.getKickedFrom().getName()); + Logger.get("SFD").info("Triggered Fallback for " + e.getPlayer().getName() + " from " + e.getKickedFrom().getName() + "(current server is " + ((e.getPlayer().getServer().getInfo() == null)?"NULL":e.getPlayer().getServer().getInfo().getName()) + ')'); e.setCancelled(true); e.getPlayer().sendMessage(api.getLang("SubServers", "Bungee.Feature.Smart-Fallback").replace("$str$", (e.getKickedFrom() instanceof Server)?((Server) e.getKickedFrom()).getDisplayName():e.getKickedFrom().getName()).replace("$msg$", e.getKickReason())); if (init) fallback.put(e.getPlayer().getUniqueId(), state); diff --git a/SubServers.Sync/src/net/ME1312/SubServers/Sync/ExProxy.java b/SubServers.Sync/src/net/ME1312/SubServers/Sync/ExProxy.java index cad129c7..926bd11b 100644 --- a/SubServers.Sync/src/net/ME1312/SubServers/Sync/ExProxy.java +++ b/SubServers.Sync/src/net/ME1312/SubServers/Sync/ExProxy.java @@ -582,7 +582,7 @@ public final class ExProxy extends BungeeCommon implements Listener { } if (!state.servers.isEmpty()) { - Logger.get("SFD").info("Triggered Fallback for " + e.getPlayer().getName() + " from " + e.getKickedFrom().getName()); + Logger.get("SFD").info("Triggered Fallback for " + e.getPlayer().getName() + " from " + e.getKickedFrom().getName() + "(current server is " + ((e.getPlayer().getServer().getInfo() == null)?"NULL":e.getPlayer().getServer().getInfo().getName()) + ')'); e.setCancelled(true); e.getPlayer().sendMessage(api.getLang("SubServers", "Bungee.Feature.Smart-Fallback").replace("$str$", (e.getKickedFrom() instanceof ServerImpl)?((ServerImpl) e.getKickedFrom()).getDisplayName():e.getKickedFrom().getName()).replace("$msg$", e.getKickReason())); if (init) fallback.put(e.getPlayer().getUniqueId(), state);