Files
RAGECOOP-V/Resources/Base/ServerBase.cs

17 lines
477 B
C#
Raw Normal View History

2022-06-04 18:09:42 +08:00
using RageCoop.Server.Scripting;
namespace RageCoop.Resources.Base
{
public class ServerBase :ServerScript
{
public ServerBase()
{
API.RegisterCommand("kick", (ctx) =>
{
if (ctx.Args.Length<1) { return; }
2022-06-04 18:16:32 +08:00
var reason = "EAT POOP!";
2022-06-04 18:09:42 +08:00
if(ctx.Args.Length>=2) { reason=ctx.Args[1]; }
API.GetClientByUsername(ctx.Args[0]).Kick(reason);
});
}
}
}