Files
DanhengServer-OpenSource/GameServer/Command/Cmd/CommandGive.cs
2024-03-10 16:55:50 +08:00

32 lines
757 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EggLink.DanhengServer.Command.Cmd
{
[CommandInfo("give", "Give item to player", "give <item> l<level> r<rank> p<promotion> x<amount>")]
public class CommandGive : ICommand
{
[CommandDefault]
public void GiveItem(CommandArg arg)
{
if (arg.Target == null)
{
arg.SendMsg("Target not found.");
return;
}
var player = arg.Target.Player;
if (player == null)
{
arg.SendMsg("Target not found.");
return;
}
}
}
}