aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ExportBot/Commands/QuitCommand.cs
blob: 4cd7209468f6a12ea0f5fb2804649eb6036cb576 (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";
		}
    }
}