mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-10-18 12:57:04 +02:00
Merge upstream to 1.7.2a
This commit is contained in:
commit
75b36a0a98
24 changed files with 660 additions and 280 deletions
Binary file not shown.
|
|
@ -70,7 +70,7 @@ public class CS2_SimpleAdmin_ExampleModule: BasePlugin
|
|||
}
|
||||
|
||||
private void OnPlayerPenaltied(PlayerInfo player, PlayerInfo? admin, PenaltyType penaltyType,
|
||||
string reason, int duration, int? serverId)
|
||||
string reason, int duration, int? penaltyId, int? serverId)
|
||||
{
|
||||
if (penaltyType == PenaltyType.Ban)
|
||||
{
|
||||
|
|
@ -82,6 +82,7 @@ public class CS2_SimpleAdmin_ExampleModule: BasePlugin
|
|||
case PenaltyType.Ban:
|
||||
{
|
||||
Logger.LogInformation("Ban issued");
|
||||
Logger.LogInformation($"Id = {penaltyId}");
|
||||
break;
|
||||
}
|
||||
case PenaltyType.Kick:
|
||||
|
|
@ -92,6 +93,7 @@ public class CS2_SimpleAdmin_ExampleModule: BasePlugin
|
|||
case PenaltyType.Gag:
|
||||
{
|
||||
Logger.LogInformation("Gag issued");
|
||||
Logger.LogInformation($"Id = {penaltyId}");
|
||||
break;
|
||||
}
|
||||
case PenaltyType.Mute:
|
||||
|
|
@ -120,13 +122,14 @@ public class CS2_SimpleAdmin_ExampleModule: BasePlugin
|
|||
}
|
||||
|
||||
private void OnPlayerPenaltiedAdded(SteamID steamId, PlayerInfo? admin, PenaltyType penaltyType,
|
||||
string reason, int duration, int? serverId)
|
||||
string reason, int duration, int? penaltyId, int? serverId)
|
||||
{
|
||||
switch (penaltyType)
|
||||
{
|
||||
case PenaltyType.Ban:
|
||||
{
|
||||
Logger.LogInformation("Ban added");
|
||||
Logger.LogInformation($"Id = {penaltyId}");
|
||||
break;
|
||||
}
|
||||
case PenaltyType.Kick:
|
||||
|
|
@ -137,6 +140,7 @@ public class CS2_SimpleAdmin_ExampleModule: BasePlugin
|
|||
case PenaltyType.Gag:
|
||||
{
|
||||
Logger.LogInformation("Gag added");
|
||||
Logger.LogInformation($"Id = {penaltyId}");
|
||||
break;
|
||||
}
|
||||
case PenaltyType.Mute:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue