Forbid leaving a room
While exit
method returns false
, the player cannot leave the room.
I tried to do that but it's tricky. The exit
function is executed already when the player actually left the room, so he must be returned back with undum.processClick
or something like that. It's hacky.