package game import ( "thehouseoficarus/internal/net" ) func (g *Game) executeStop(sess *net.Session, args []string, rawInput string) { p := sess.Player as, ok := p.ActionState.(*ActionState) if !ok || as == nil || as.Type == "" { sess.WriteLine("You're not doing anything.") return } g.cancelAction(p) g.cancelBgAction(p) delete(g.activeQueue, p.Name) sess.WriteLine("You stop what you were doing.") }