Commit Graph

5 Commits

Author SHA1 Message Date
572e40f158 ProtectedPlayerManager adjustments and AFK timer.
- No longer adding a player that might not exist to then instantly remove them if they don't.
- Updated method calls to match new ones in ProtectedPlayer.
- Updated packet names to new ones.
- Grace period timer no longer cancels the timer but itself instead.
- Created new method for starting the afk timer for a player, starting a new afk timer whenever a player becomes active.
2022-06-05 13:47:36 +01:00
fa0794bf13 Setting last input tick of a player when a player becomes active. 2022-05-24 00:29:39 +01:00
5d81f93a13 Sending player state to the client when added to protected players. 2022-05-23 23:59:40 +01:00
cc987312ab Removing player from protected players if afk protection is disabled after applying effects and when the grace period runs out. Sending player state packet to player when it gets updated. 2022-05-22 03:15:09 +01:00
babc73a8dc Renamed and rewrote the manager for protected players. Most protected player logic should now be handled by the manager. 2022-05-21 20:57:32 +01:00