Task:
Create a pubbot module (pubbot-module only, an empty pubhub module will suffice) which moves idle players from a public arena to ?go afk arena.
For moving players you can use the *sendto command:
*sendto [IP],[Port],[Arena] (Sysop only)
Note: Using a incorrect syntax for this command will crash the zone. Because of this, testing this new module must be done on a local server.
A player is idle if he is a spectator and hasn't talked for a set amount of time. This amount of time must be settable in either the source code or the .cfg file.
For determining if a player is idle, I would recommend recording when a spectator has talked for the last time. Then every 5 minutes a TimerTask would run to check if the spectators haven't talked for x amount of minutes, after which the player will be moved by using the *sendto command.