Search in sources :

Example 1 with PacketCheckRetinalScanner

use of org.freeforums.geforce.securitycraft.network.packets.PacketCheckRetinalScanner in project SecurityCraft by Geforce132.

the class ForgeEventHandler method onPlayerTick.

@SubscribeEvent
@SideOnly(Side.CLIENT)
public void onPlayerTick(PlayerTickEvent event) {
    counter++;
    if (cooldownCounter > 0) {
        cooldownCounter--;
    }
    if (counter >= 20) {
        mod_SecurityCraft.network.sendToServer(new PacketCheckRetinalScanner(event.player.getCommandSenderName()));
        counter = 0;
    }
}
Also used : PacketCheckRetinalScanner(org.freeforums.geforce.securitycraft.network.packets.PacketCheckRetinalScanner) SubscribeEvent(cpw.mods.fml.common.eventhandler.SubscribeEvent) SideOnly(cpw.mods.fml.relauncher.SideOnly)

Aggregations

SubscribeEvent (cpw.mods.fml.common.eventhandler.SubscribeEvent)1 SideOnly (cpw.mods.fml.relauncher.SideOnly)1 PacketCheckRetinalScanner (org.freeforums.geforce.securitycraft.network.packets.PacketCheckRetinalScanner)1