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

@ -13,6 +13,7 @@ import java.util.List;
public class LoginProtection {
public static final String MOD_ID = "loginprotection";
public static ProtectedPlayers protected_players = new ProtectedPlayers();
public static boolean has_pressed_key = false;
public LoginProtection() {
Registration.register();