mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-11-25 11:46:50 +01:00
More debugging!
This commit is contained in:
parent
5898371780
commit
d0177ce055
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user