My idea is that mobs cant attack you while youre afk mode because i died alot while i was afk <object class="emojione" data="https://resources.enjin.com/1489581540/themes/core/images/emojione/svg/2639.svg?0" type="image/svg+xml" standby=":(">:(</object>
a better idea would be have AFK players teleported to Spawn, so players won't AFK-farm or die.
More importantly, so players don't abuse the "/afk" command in order to gain invincibility. I second the idea of having the /afk command and the inactivity timer auto-teleported players to spawn. Then again you could just use the /spawn command prior to going AFK. <object class="emojione" data="https://resources.enjin.com/1489581540/themes/core/images/emojione/svg/1f61b.svg?0" type="image/svg+xml" standby=":p">:p</object>