// Path: src/main/java/com/github/lunatrius/ingameinfo/handler/PlayerHandler.java
// public class PlayerHandler {
//     @SubscribeEvent
//     public void onPlayerLogin(final PlayerEvent.PlayerLoggedInEvent event) {
//         if (event.player instanceof EntityPlayerMP) {
//             try {
//                 PacketHandler.INSTANCE.sendTo(new MessageSeed(event.player.world.getSeed()), (EntityPlayerMP) event.player);
//             } catch (final Exception ex) {
//                 Reference.logger.error("Failed to send the seed!", ex);
//             }
//         }
//     }
// }


import com.github.lunatrius.ingameinfo.handler.PlayerHandler;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
package com.github.lunatrius.ingameinfo.proxy;


public class ServerProxy extends CommonProxy {
    @Override
    public void init(final FMLInitializationEvent event) {
// Path: src/main/java/com/github/lunatrius/ingameinfo/handler/PlayerHandler.java
// public class PlayerHandler {
//     @SubscribeEvent
//     public void onPlayerLogin(final PlayerEvent.PlayerLoggedInEvent event) {
//         if (event.player instanceof EntityPlayerMP) {
//             try {
//                 PacketHandler.INSTANCE.sendTo(new MessageSeed(event.player.world.getSeed()), (EntityPlayerMP) event.player);
//             } catch (final Exception ex) {
//                 Reference.logger.error("Failed to send the seed!", ex);
//             }
//         }
//     }
// }


// Path: src/main/java/com/github/lunatrius/ingameinfo/proxy/ServerProxy.java
import com.github.lunatrius.ingameinfo.handler.PlayerHandler;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;

package com.github.lunatrius.ingameinfo.proxy;


public class ServerProxy extends CommonProxy {
    @Override
    public void init(final FMLInitializationEvent event) {
        MinecraftForge.EVENT_BUS.register(new PlayerHandler());