Created a network packet for when a client presses a key. (Mod is now also client sided). Renamed some event handlers. Made it so after a client presses a key their grace period starts. After the grace period ends the player is removed from the list.

This commit is contained in:
micle
2021-06-03 17:01:28 +01:00
parent 635a801ff2
commit 532a49744b
8 changed files with 105 additions and 6 deletions

View File

@ -0,0 +1,13 @@
package com.micle.loginprotection.events;
import com.micle.loginprotection.LoginProtection;
import net.minecraftforge.client.event.InputEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
public class OnKeyPressEventHandler {
@SubscribeEvent
public void KeyPressEvent(InputEvent.KeyInputEvent event) {
if (LoginProtection.has_pressed_key) { return; }
}
}