Releases: kingsplayground/Ultimate-AFK
Releases · kingsplayground/Ultimate-AFK
Update for Exiled 2.0
Update plugin to work with Exiled 2.0, this will not work with older versions of exiled!
Better null variable handling
- Moved uafk.ignore permission checking to the OnSetClass event to fix it not working properly.
- Cleaned up AFK Resetting events, moving it to one function with better error handling for null variables.
Hotfix: Fixing NullReferenceException and Adding better 079 respawning support.
v2.0.1 Hotfix, and better 079 support for replacement.
Version 2.0.0
Changes:
— Every time a player is moved to spec, a counter is incremented. Once that counter reaches this setting it will kick the specified player.
If you wish to disable this please set it to -1 (default is 2) uafk_kick_count: 2
— Added uafk.ignore
permission to bypass the AFK detection system. Assign this to server ranks that you don't want to have AFK checks for.
— Added support for SCP-079
— Minor code cleanup
Removed:
— uafk_kick
config setting has been removed as it is no longer necessary
Multiple updates and new features to check if a player is AFK
Suggestions by iopietro: You should save the player ReferenceHub in a class field, instead of getting it every second. You can do it in the Awake() method. You can use hub.GetPosition() EXILED player extension, instead of yours (where hub is a ReferenceHub). You should move TryReplacePlayer() directly into AFKComponent class. You should check if the player did some interactions and/or shoot and/or moved his camera and not only his position.
Hotfix: Timer not restarting after player is already marked as AFK
v1.0.1 Tinybrain forgot to reset the AFK timer lol!
Initial Release
May still be some bugs. Please create an issue if you find any bugs thanks :)