mirror of
https://github.com/MrOkiDoki/BattleBit-Community-Server-API.git
synced 2025-01-24 18:23:09 -03:00
Adds Player.Ban/GameServer.Ban
This commit is contained in:
parent
4f0ce62f10
commit
7f072f0461
2 changed files with 12 additions and 0 deletions
|
@ -441,6 +441,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);
|
||||
|
|
|
@ -145,6 +145,10 @@ namespace BattleBitAPI
|
|||
{
|
||||
GameServer.Kick(this, reason);
|
||||
}
|
||||
public void Ban()
|
||||
{
|
||||
GameServer.Ban(this);
|
||||
}
|
||||
public void Kill()
|
||||
{
|
||||
GameServer.Kill(this);
|
||||
|
|
Loading…
Add table
Reference in a new issue