Fixed three players issue, some work on API and resources management.
This commit is contained in:
@ -1,17 +1,5 @@
|
||||
using RageCoop.Server.Scripting;
|
||||
namespace RageCoop.Resources.Base
|
||||
{
|
||||
public class ServerBase :ServerScript
|
||||
{
|
||||
public ServerBase()
|
||||
{
|
||||
API.RegisterCommand("kick", (ctx) =>
|
||||
{
|
||||
if (ctx.Args.Length<1) { return; }
|
||||
var reason = "EAT POOP!";
|
||||
if(ctx.Args.Length>=2) { reason=ctx.Args[1]; }
|
||||
API.GetClientByUsername(ctx.Args[0]).Kick(reason);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user