// Path: src/main/java/com/github/lunatrius/ingameinfo/network/PacketHandler.java
// public class PacketHandler {
//     public static final SimpleNetworkWrapper INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel(Reference.MODID);
// 
//     public static void init() {
//         INSTANCE.registerMessage(MessageSeed.class, MessageSeed.class, 0, Side.CLIENT);
//     }
// }
// 
// Path: src/main/java/com/github/lunatrius/ingameinfo/network/message/MessageSeed.java
// public class MessageSeed implements IMessage, IMessageHandler<MessageSeed, IMessage> {
//     public long seed;
// 
//     public MessageSeed() {
//         this.seed = 0;
//     }
// 
//     public MessageSeed(final long seed) {
//         this.seed = seed;
//     }
// 
//     @Override
//     public void fromBytes(final ByteBuf buf) {
//         this.seed = buf.readLong();
//     }
// 
//     @Override
//     public void toBytes(final ByteBuf buf) {
//         buf.writeLong(this.seed);
//     }
// 
//     @Override
//     public IMessage onMessage(final MessageSeed message, final MessageContext ctx) {
//         if (ctx.side == Side.CLIENT) {
//             Tag.setSeed(message.seed);
//         }
// 
//         return null;
//     }
// }
// 
// Path: src/main/java/com/github/lunatrius/ingameinfo/reference/Reference.java
// public class Reference {
//     public static final String MODID = "ingameinfoxml";
//     public static final String NAME = "InGame Info XML";
//     public static final String VERSION = "${version}";
//     public static final String FORGE = "${forgeversion}";
//     public static final String MINECRAFT = "${mcversion}";
//     public static final String PROXY_SERVER = "com.github.lunatrius.ingameinfo.proxy.ServerProxy";
//     public static final String PROXY_CLIENT = "com.github.lunatrius.ingameinfo.proxy.ClientProxy";
//     public static final String GUI_FACTORY = "com.github.lunatrius.ingameinfo.client.gui.config.GuiFactory";
// 
//     public static Logger logger = LogManager.getLogger(Reference.MODID);
// }


import com.github.lunatrius.ingameinfo.network.PacketHandler;
import com.github.lunatrius.ingameinfo.network.message.MessageSeed;
import com.github.lunatrius.ingameinfo.reference.Reference;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.PlayerEvent;
package com.github.lunatrius.ingameinfo.handler;


public class PlayerHandler {
    @SubscribeEvent
    public void onPlayerLogin(final PlayerEvent.PlayerLoggedInEvent event) {
        if (event.player instanceof EntityPlayerMP) {
            try {
// Path: src/main/java/com/github/lunatrius/ingameinfo/network/PacketHandler.java
// public class PacketHandler {
//     public static final SimpleNetworkWrapper INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel(Reference.MODID);
// 
//     public static void init() {
//         INSTANCE.registerMessage(MessageSeed.class, MessageSeed.class, 0, Side.CLIENT);
//     }
// }
// 
// Path: src/main/java/com/github/lunatrius/ingameinfo/network/message/MessageSeed.java
// public class MessageSeed implements IMessage, IMessageHandler<MessageSeed, IMessage> {
//     public long seed;
// 
//     public MessageSeed() {
//         this.seed = 0;
//     }
// 
//     public MessageSeed(final long seed) {
//         this.seed = seed;
//     }
// 
//     @Override
//     public void fromBytes(final ByteBuf buf) {
//         this.seed = buf.readLong();
//     }
// 
//     @Override
//     public void toBytes(final ByteBuf buf) {
//         buf.writeLong(this.seed);
//     }
// 
//     @Override
//     public IMessage onMessage(final MessageSeed message, final MessageContext ctx) {
//         if (ctx.side == Side.CLIENT) {
//             Tag.setSeed(message.seed);
//         }
// 
//         return null;
//     }
// }
// 
// Path: src/main/java/com/github/lunatrius/ingameinfo/reference/Reference.java
// public class Reference {
//     public static final String MODID = "ingameinfoxml";
//     public static final String NAME = "InGame Info XML";
//     public static final String VERSION = "${version}";
//     public static final String FORGE = "${forgeversion}";
//     public static final String MINECRAFT = "${mcversion}";
//     public static final String PROXY_SERVER = "com.github.lunatrius.ingameinfo.proxy.ServerProxy";
//     public static final String PROXY_CLIENT = "com.github.lunatrius.ingameinfo.proxy.ClientProxy";
//     public static final String GUI_FACTORY = "com.github.lunatrius.ingameinfo.client.gui.config.GuiFactory";
// 
//     public static Logger logger = LogManager.getLogger(Reference.MODID);
// }


// Path: src/main/java/com/github/lunatrius/ingameinfo/handler/PlayerHandler.java
import com.github.lunatrius.ingameinfo.network.PacketHandler;
import com.github.lunatrius.ingameinfo.network.message.MessageSeed;
import com.github.lunatrius.ingameinfo.reference.Reference;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.PlayerEvent;

package com.github.lunatrius.ingameinfo.handler;


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);