mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-25 05:51:47 -08:00
Suppress d/c messages when necessary
This commit is contained in:
parent
f2bc3e78d7
commit
83f44abb5a
1 changed files with 5 additions and 3 deletions
|
|
@ -472,7 +472,7 @@ public class NetServer implements ApplicationListener{
|
|||
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();
|
||||
|
|
@ -620,8 +620,10 @@ public class NetServer implements ApplicationListener{
|
|||
|
||||
player.add();
|
||||
player.con.hasConnected = true;
|
||||
if(Config.showConnectMessages.bool()) Call.sendMessage("[accent]" + player.name + "[accent] has connected.");
|
||||
Log.info("&lm[{1}] &y{0} has connected. ", player.name, player.uuid);
|
||||
if(Config.showConnectMessages.bool()){
|
||||
Call.sendMessage("[accent]" + player.name + "[accent] has connected.");
|
||||
Log.info("&lm[{1}] &y{0} has connected. ", player.name, player.uuid);
|
||||
}
|
||||
|
||||
if(!Config.motd.string().equalsIgnoreCase("off")){
|
||||
player.sendMessage(Config.motd.string());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue