mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 04:56:50 +01:00
Fix improperly initialized usernames
This commit is contained in:
parent
cd593fb1ee
commit
5c861fe864
1 changed files with 3 additions and 0 deletions
|
@ -63,6 +63,9 @@ public class PendingConnection extends Connection {
|
||||||
|
|
||||||
public void a(Packet2Handshake packet2handshake) {
|
public void a(Packet2Handshake packet2handshake) {
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
|
if (this.g != null) {
|
||||||
|
this.disconnect("Invalid username " + this.g);
|
||||||
|
}
|
||||||
this.hostname = packet2handshake.c == null ? "" : packet2handshake.c + ':' + packet2handshake.d;
|
this.hostname = packet2handshake.c == null ? "" : packet2handshake.c + ':' + packet2handshake.d;
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
this.g = packet2handshake.f();
|
this.g = packet2handshake.f();
|
||||||
|
|
Loading…
Reference in a new issue