Change kicking options

This commit is contained in:
sardelka9515
2022-08-22 09:33:54 +08:00
parent bf22c17bba
commit f1c7192029
5 changed files with 21 additions and 13 deletions

View File

@ -172,10 +172,15 @@ namespace RageCoop.Server
{
foreach(var c in ClientsByNetHandle.Values.ToArray())
{
if (c.EntitiesCount > 100 || c.Player.IsInvincible)
if (c.EntitiesCount > 100 && Settings.KickSpamming)
{
c.Kick("Bye bye asshole~");
API.SendChatMessage($"Asshole {c.Username} was kicked!");
c.Kick("Bye bye asshole: spamming");
API.SendChatMessage($"Asshole {c.Username} was kicked: Spamming");
}
else if (Settings.KickGodMode && c.Player.IsInvincible)
{
c.Kick("Bye bye asshole: godmode");
API.SendChatMessage($"Asshole {c.Username} was kicked: GodMode");
}
}
}