mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-11-13 05:54:32 +01:00
Less debugging.
This commit is contained in:
parent
d0177ce055
commit
ce38355c91
@ -1054,7 +1054,6 @@ 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() + "(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,6 @@ 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() + "(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