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:
@ -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; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user