Give this a try..

Code:
on *:text:!leaguetime *:#: {
  if ($nick !isOp #) { return }
  if ($2 == on) { 
    enable #league
    msg # League time out on.
  }
  elseif ($2 == off) { 
    disable #league
    msg # League time out off.
  }
  else {
    msg # Invalid parameters.
  }
}
#league on
on *:text:*league*:#: {
  if ($nick !isOp #) { return }
    msg # .timeout $nick 15
    msg # $nick has been timed out for typing league.
  }
}
#league end

Last edited by drowsy; 20/10/15 10:44 PM.