Changed grace period time from 200 to 400 (5s to 10s). Added function to ProtectedPlayers.java to remove a player from the list, updated the updateGracePeriods method. Updated C2SKeyPress.java. Made OnKeyPressEventHandler.java check for mouse clicks as well, also made sure it only fires on client-side. Added an event for when a player leaves the server to remove them from the list.
This commit is contained in:
@ -9,7 +9,7 @@ public class ProtectedPlayer {
|
||||
|
||||
public ProtectedPlayer(UUID player_uuid) {
|
||||
this.player_uuid = player_uuid;
|
||||
this.grace_period = 200;
|
||||
this.grace_period = 400;
|
||||
this.is_loading = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user