aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/mass test client/Commands/System/QuitCommand.cs
blob: 2cf0418ce765b0b135b4ee53a0b66059cd93e9d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Collections.Generic;
using System.Text;
using libsecondlife;
using libsecondlife.Packets;

namespace libsecondlife.TestClient
{
    public class QuitCommand: Command
    {
        public QuitCommand(TestClient testClient)
		{
			Name = "quit";
			Description = "Log all avatars out and shut down";
		}

        public override string Execute(string[] args, LLUUID fromAgentID)
		{
			Client.ClientManager.LogoutAll();
            Client.ClientManager.Running = false;
            return "All avatars logged out";
		}
    }
}