https://github.com/crabdancing/afkinvulnerability
https://github.com/crabdancing/afkinvulnerability
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/crabdancing/afkinvulnerability
- Owner: crabdancing
- License: gpl-3.0
- Created: 2022-01-17T22:20:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-21T02:32:32.000Z (over 4 years ago)
- Last Synced: 2025-02-06T05:33:04.222Z (over 1 year ago)
- Language: Java
- Size: 94.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
TODO
- [x] Basic function
- [x] Server-side idle player detection
- [x] Block damage to idle player
- [x] Make the player invisible
- [x] Make it so mobs already tracking the player at the time that they register as idle, stop doing so
- [x] Maybe add something to mob tick that regularly tests if players are AFK and ignores them otherwise?
- [x] Must find some way of accessing our mixin variable for that player instance outside of context... may require looking at player index :c
- [ ] `setTarget()` is a last minute injection. Would be better to inject into the code that evaluates target validity to begin with.
- [ ] Maybe add exemption for `/kill` commands, because as is, the player is immune to them when idle :P
- [ ] Configurable idle duration
- [ ] Replace current `doTick` based implementation with something that runs more reliably -- maybe a global tick?