Suppress d/c messages when necessary
This commit is contained in:
@@ -472,7 +472,7 @@ public class NetServer implements ApplicationListener{
|
|||||||
Call.onPlayerDisconnect(player.id);
|
Call.onPlayerDisconnect(player.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.info("&lm[{1}] &lc{0} has disconnected. &lg&fi({2})", player.name, player.uuid, reason);
|
if(Config.showConnectMessages.bool()) Log.info("&lm[{1}] &lc{0} has disconnected. &lg&fi({2})", player.name, player.uuid, reason);
|
||||||
}
|
}
|
||||||
|
|
||||||
player.remove();
|
player.remove();
|
||||||
@@ -620,8 +620,10 @@ public class NetServer implements ApplicationListener{
|
|||||||
|
|
||||||
player.add();
|
player.add();
|
||||||
player.con.hasConnected = true;
|
player.con.hasConnected = true;
|
||||||
if(Config.showConnectMessages.bool()) Call.sendMessage("[accent]" + player.name + "[accent] has connected.");
|
if(Config.showConnectMessages.bool()){
|
||||||
|
Call.sendMessage("[accent]" + player.name + "[accent] has connected.");
|
||||||
Log.info("&lm[{1}] &y{0} has connected. ", player.name, player.uuid);
|
Log.info("&lm[{1}] &y{0} has connected. ", player.name, player.uuid);
|
||||||
|
}
|
||||||
|
|
||||||
if(!Config.motd.string().equalsIgnoreCase("off")){
|
if(!Config.motd.string().equalsIgnoreCase("off")){
|
||||||
player.sendMessage(Config.motd.string());
|
player.sendMessage(Config.motd.string());
|
||||||
|
|||||||
Reference in New Issue
Block a user