mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 20:53:40 -04:00
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:
parent
6f0a9e0abf
commit
6f27cdc5fb
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user