Adds Player.Ban/GameServer.Ban
This commit is contained in:
parent
860102b5d1
commit
d8ce7d1456
|
@ -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…
Reference in New Issue