891011121314
public class ConnectionHandler { @SubscribeEvent public void onPlayerLoggon(PlayerLoggedInEvent evt) { PacketHandler.INSTANCE.sendTo(new PacketConfigSync(), (EntityPlayerMP) evt.player); }