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