void handleCustomPacket(
     Packet250CustomPayload packet, NetworkManager network, NetHandler handler) {
   if ("REGISTER".equals(packet.channel)) {
     handleRegistrationPacket(packet, (Player) handler.getPlayer());
   } else if ("UNREGISTER".equals(packet.channel)) {
     handleUnregistrationPacket(packet, (Player) handler.getPlayer());
   } else {
     handlePacket(packet, network, (Player) handler.getPlayer());
   }
 }
 void clientLoggedIn(NetHandler clientHandler, NetworkManager manager, Packet1Login login) {
   generateChannelRegistration(clientHandler.getPlayer(), clientHandler, manager);
   for (IConnectionHandler handler : connectionHandlers) {
     handler.clientLoggedIn(clientHandler, manager, login);
   }
 }