Add /afk

/afk will toggle the player's AFK status, and that status is set to
false whenever he moves to a different block location or interacts with
an object in the world.