Adds Player.Ban/GameServer.Ban

This commit is contained in:
RainOrigami 2023-08-18 12:39:11 +02:00
parent 4f0ce62f10
commit 7f072f0461
2 changed files with 12 additions and 0 deletions

View File

@ -441,6 +441,14 @@ namespace BattleBitAPI.Server
{ {
Kick(player.SteamID, reason); 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) public void Kill(ulong steamID)
{ {
ExecuteCommand("kill " + steamID); ExecuteCommand("kill " + steamID);

View File

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