mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-07 21:58:06 -05:00
19 lines
684 B
C#
19 lines
684 B
C#
using SharedLibraryCore.Database.Models;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SharedLibraryCore.Commands
|
|
{
|
|
public class UnlinkClientCommand : Command
|
|
{
|
|
public UnlinkClientCommand() :
|
|
base("unlinkclient", Utilities.CurrentLocalization.LocalizationIndex["COMMANDS_UNLINK_CLIENT_DESC"], "uc", EFClient.Permission.Administrator, true)
|
|
{ }
|
|
|
|
public override async Task ExecuteAsync(GameEvent E)
|
|
{
|
|
await E.Owner.Manager.GetClientService().UnlinkClient(E.Target.ClientId);
|
|
E.Origin.Tell(Utilities.CurrentLocalization.LocalizationIndex["COMMANDS_UNLINK_CLIENT_SUCCESS"].FormatExt(E.Target));
|
|
}
|
|
}
|
|
}
|