--- a/net/minecraft/network/handshake/ServerHandshakeNetHandler.java
+++ b/net/minecraft/network/handshake/ServerHandshakeNetHandler.java
@@ -23,6 +23,7 @@
    }
 
    public void func_147383_a(CHandshakePacket p_147383_1_) {
+      if (!net.minecraftforge.fml.server.ServerLifecycleHooks.handleServerLogin(p_147383_1_, this.field_147386_b)) return;
       switch(p_147383_1_.func_149594_c()) {
       case LOGIN:
          this.field_147386_b.func_150723_a(ProtocolType.LOGIN);
