mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-27 07:11:04 -04:00
Non-kick disconnections should show the reason in console. (Thanks goodlyay)
This commit is contained in:
parent
166e5dfadf
commit
8fe518da49
@ -620,13 +620,13 @@ namespace MCGalaxy {
|
||||
GlobalDespawn(this, false);
|
||||
if (discMsg != null) {
|
||||
if (!hidden) {
|
||||
string leavem = "&c- " + color + prefix + DisplayName + Server.DefaultColor + " %S" + discMsg;
|
||||
string leavem = "&c- " + color + prefix + DisplayName + " %S" + discMsg;
|
||||
if ((Server.guestLeaveNotify && group.Permission <= LevelPermission.Guest) || group.Permission > LevelPermission.Guest) {
|
||||
Player[] players = PlayerInfo.Online;
|
||||
foreach (Player pl in players) { Player.SendMessage(pl, leavem); }
|
||||
}
|
||||
}
|
||||
Server.s.Log(name + " disconnected.");
|
||||
Server.s.Log(name + "disconnected (" + discMsg + ").");
|
||||
} else {
|
||||
totalKicked++;
|
||||
SendChatFrom(this, "&c- " + color + prefix + DisplayName + " %Skicked (" + kickMsg + "%S).", false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user