2014-07-08 12:58:53 +00:00
|
|
|
|
using ProtoBuf;
|
|
|
|
|
|
2015-01-13 18:29:11 +00:00
|
|
|
|
namespace xServer.Core.Packets.ServerPackets
|
2014-07-08 12:58:53 +00:00
|
|
|
|
{
|
|
|
|
|
[ProtoContract]
|
|
|
|
|
public class ShellCommand : IPacket
|
|
|
|
|
{
|
|
|
|
|
[ProtoMember(1)]
|
|
|
|
|
public string Command { get; set; }
|
|
|
|
|
|
2015-04-21 18:27:52 +00:00
|
|
|
|
public ShellCommand()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2014-07-08 12:58:53 +00:00
|
|
|
|
public ShellCommand(string command)
|
|
|
|
|
{
|
|
|
|
|
this.Command = command;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Execute(Client client)
|
|
|
|
|
{
|
|
|
|
|
client.Send<ShellCommand>(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-04-21 18:27:52 +00:00
|
|
|
|
}
|