I am doing a jail system by Talkactions. It works like this...
For jail someone you must say !jail "name,reason,time, for example !jail "Alonso,botter,10sec.
Well, until here it's all OK, but when the char is sent to the jail, I use an addEvent(onTime) function for get the time the player...