Make distance check distance configurable
Move all event listeners into one class
Tidy up class AfkDetectionTask
<Refactoring>