void main()
{
object oPlayer = GetLastSpellCaster();
if (GetLastSpellHarmful() == TRUE){
if (GetIsPC(oPlayer) && !GetIsDM(oPlayer)){

DelayCommand(4.0, AssignCommand(oPlayer,JumpToLocation(GetLocation(GetWaypointByTag("prison")))));
 SendMessageToPC(oPlayer, "You have been sent to jail for vandalism.");
 SetCommandable(FALSE, oPlayer);
DelayCommand(1.0, SetCommandable(TRUE, oPlayer));
AssignCommand(oPlayer, ClearAllActions());
 }
 }
}