geforkt von Mirrors/Paper
Initialize hostname on handshake. Fixes BUKKIT-4793
This restores a lost CraftBukkit diff that initializes the hostname field used during login events.
Dieser Commit ist enthalten in:
Ursprung
dcb9d6a5ef
Commit
90e8aa008a
@ -65,6 +65,7 @@ public class PendingConnection extends Connection {
|
||||
if (this.g != null) {
|
||||
this.disconnect("Quit repeating yourself!");
|
||||
} else {
|
||||
this.hostname = packet2handshake.c + ':' + packet2handshake.d; // CraftBukkit - initialize field
|
||||
this.g = packet2handshake.f();
|
||||
if (!this.g.equals(StripColor.a(this.g))) {
|
||||
this.disconnect("Invalid username!");
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren