/**
 * 
 * @author Zuxelus (I copied him)
 * 
 */
package shedar.mods.ic2.nuclearcontrol;

import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.PlayerEvent.PlayerLoggedInEvent;
import cpw.mods.fml.common.gameevent.TickEvent;
import cpw.mods.fml.common.gameevent.TickEvent.Phase;
import cpw.mods.fml.common.gameevent.TickEvent.Type;
import cpw.mods.fml.relauncher.Side;
import net.minecraftforge.event.world.WorldEvent;
import net.minecraft.entity.player.EntityPlayerMP;
import shedar.mods.ic2.nuclearcontrol.network.ChannelHandler;
import shedar.mods.ic2.nuclearcontrol.network.message.PacketAlarm;
import shedar.mods.ic2.nuclearcontrol.panel.http.HttpCardSender;

public class ServerTickHandler {

	public final static ServerTickHandler instance = new ServerTickHandler();

	// Function onWorldUnload from CommonProxy.java
	@SubscribeEvent
	public void onWorldUnload(WorldEvent.Unload event) {
		IC2NuclearControl.instance.screenManager.clearWorld(event.world);
	}

	// Function playerLoggedIn from ConnectionHandler.java
	@SubscribeEvent
	public void onPlayerLogin(PlayerLoggedInEvent event) {
		ChannelHandler.network.sendTo(new PacketAlarm(
				IC2NuclearControl.instance.maxAlarmRange,
				IC2NuclearControl.instance.allowedAlarms),
				(EntityPlayerMP) event.player);
	}

	@SubscribeEvent
	public void onTick(TickEvent.ServerTickEvent event) {
		if (event.type == Type.SERVER && event.side == Side.SERVER
				&& event.phase == Phase.END) {
			HttpCardSender.instance.send();
		}
	}
}

@@ -1312,16 +1312,18 @@
 );%0A%09%7D%0A%0A%09
+/*
 @Subscri
@@ -1522,11 +1522,13 @@
 ;%0A%09%09%7D%0A%09%7D
+*/
 %0A%7D%0A

Update ServerTickHandler.java