Files
libremetaverse/libsecondlife-cs/examples/TestClient/Commands/BalanceCommand.cs

28 lines
622 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Text;
using libsecondlife;
using libsecondlife.Packets;
namespace libsecondlife.TestClient
{
public class BalanceCommand: Command
{
SecondLife Client;
public BalanceCommand(TestClient testClient)
{
TestClient = testClient;
Client = (SecondLife)TestClient;
Name = "balance";
Description = "Shows the amount of L$.";
}
public override string Execute(string[] args, LLUUID fromAgentID)
{
return Client.ToString() + " has L$: " + Client.Self.Balance;
}
}
}