Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions BattleBitAPI/Server/GameServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,14 @@ public void Kick(Player<TPlayer> player, string 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)
{
ExecuteCommand("kill " + steamID);
Expand Down
4 changes: 4 additions & 0 deletions BattleBitAPI/Server/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ public void Kick(string reason = "")
{
GameServer.Kick(this, reason);
}
public void Ban()
{
GameServer.Ban(this);
}
public void Kill()
{
GameServer.Kill(this);
Expand Down