diff options
author | sk89q <the.sk89q@gmail.com> | 2011-04-16 03:08:13 -0700 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-04-16 03:08:13 -0700 |
commit | 8aa376fc2708db8cb9c21df325174d74b9c7bdb9 (patch) | |
tree | 2d151b0a98ed3642743c6a2d82269d246e4a0496 /src/main/java/net/minecraft/server/NetLoginHandler.java | |
parent | dc6c906e1af84486b1301e788c5b195595119241 (diff) | |
download | craftbukkit-8aa376fc2708db8cb9c21df325174d74b9c7bdb9.tar craftbukkit-8aa376fc2708db8cb9c21df325174d74b9c7bdb9.tar.gz craftbukkit-8aa376fc2708db8cb9c21df325174d74b9c7bdb9.tar.lz craftbukkit-8aa376fc2708db8cb9c21df325174d74b9c7bdb9.tar.xz craftbukkit-8aa376fc2708db8cb9c21df325174d74b9c7bdb9.zip |
Added pre-login event for catching logins right after name verification has completed. This happens in a different thread from the server (and thus can also block).
Diffstat (limited to 'src/main/java/net/minecraft/server/NetLoginHandler.java')
-rw-r--r-- | src/main/java/net/minecraft/server/NetLoginHandler.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/NetLoginHandler.java b/src/main/java/net/minecraft/server/NetLoginHandler.java index a980b479..f155254a 100644 --- a/src/main/java/net/minecraft/server/NetLoginHandler.java +++ b/src/main/java/net/minecraft/server/NetLoginHandler.java @@ -21,6 +21,12 @@ public class NetLoginHandler extends NetHandler { this.b = new NetworkManager(socket, s, this); this.b.d = 0; } + + // CraftBukkit start + public Socket getSocket() { + return b.f; + } + // CraftBukkit end public void a() { if (this.h != null) { @@ -67,7 +73,7 @@ public class NetLoginHandler extends NetHandler { if (!this.e.l) { this.b(packet1login); } else { - (new ThreadLoginVerifier(this, packet1login)).start(); + (new ThreadLoginVerifier(this, packet1login, e.server)).start(); } } } |