This commit is contained in:
Rain 2023-11-30 00:24:43 -07:00 committed by GitHub
commit d704343754
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -669,6 +669,14 @@ namespace BattleBitAPI.Server
{
Kick(player.SteamID, reason);
}
public void Ban(ulong steamID)
{
ExecuteCommand("ban " + steamID);
}
public void Ban(Player<TPlayer> player)
{
Ban(player.SteamID);
}
public void Kill(ulong steamID)
{
ExecuteCommand("kill " + steamID);

View File

@ -186,6 +186,10 @@ namespace BattleBitAPI
if (IsConnected)
GameServer.Kick(this, reason);
}
public void Ban()
{
GameServer.Ban(this);
}
public void Kill()
{
if (IsConnected)