Since people seem to be confused by the 'Someone logged in as you' message, now just show a '(reconnecting)' message.

This commit is contained in:
UnknownShadow200 2016-08-03 23:02:31 +10:00
parent 6f0a9e0abf
commit 6f27cdc5fb

View File

@ -325,12 +325,13 @@ namespace MCGalaxy {
Player[] players = PlayerInfo.Online.Items;
foreach (Player p in players) {
if (p.name == name) {
if (Server.verify) {
p.Leave("Someone logged in as you!"); break;
} else {
Leave("Already logged in!", true); return;
}
if (p.name != name) continue;
if (Server.verify) {
string reason = p.ip == ip ? "(Reconnecting)" : "(Reconnecting from a different IP)";
p.Leave(reason); break;
} else {
Leave("Already logged in!", true); return;
}
}