More debugging!

This commit is contained in:
ME1312 2021-04-13 17:35:06 -04:00
parent 5898371780
commit d0177ce055
No known key found for this signature in database
GPG Key ID: FEFFE2F698E88FA8
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);