Add ban and kick events

This commit is contained in:
Brant Martin
2018-12-16 20:53:52 -05:00
parent 9a1a31c424
commit 76637b130c
4 changed files with 42 additions and 2 deletions

View File

@@ -32,5 +32,15 @@ namespace Torch.API.Managers
/// <param name="steamId">The SteamID of the player.</param>
/// <returns>True if the player is banned; otherwise false.</returns>
bool IsBanned(ulong steamId);
/// <summary>
/// Raised when a player is kicked. Passes with SteamID of kicked player.
/// </summary>
event Action<ulong> PlayerKicked;
/// <summary>
/// Raised when a player is banned or unbanned. Passes SteamID of player, and true if banned, false if unbanned.
/// </summary>
event Action<ulong, bool> PlayerBanned;
}
}