Change kicking options
This commit is contained in:
parent
bf22c17bba
commit
f1c7192029
@ -16,7 +16,7 @@ using System.Resources;
|
||||
|
||||
|
||||
// Version informationr(
|
||||
[assembly: AssemblyVersion("1.5.2.63")]
|
||||
[assembly: AssemblyFileVersion("1.5.2.63")]
|
||||
[assembly: AssemblyVersion("1.5.2.64")]
|
||||
[assembly: AssemblyFileVersion("1.5.2.64")]
|
||||
[assembly: NeutralResourcesLanguageAttribute( "en-US" )]
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -166,10 +166,8 @@ namespace RageCoop.Server
|
||||
{
|
||||
_updateTimer.Enabled = true;
|
||||
}
|
||||
if (Settings.AntiAssholes)
|
||||
{
|
||||
_antiAssholesTimer.Enabled = true;
|
||||
}
|
||||
_antiAssholesTimer.Enabled = true;
|
||||
|
||||
|
||||
Logger?.Info("Listening for clients");
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ using System.Resources;
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Version information
|
||||
[assembly: AssemblyVersion("1.5.2.77")]
|
||||
[assembly: AssemblyFileVersion("1.5.2.77")]
|
||||
[assembly: AssemblyVersion("1.5.2.78")]
|
||||
[assembly: AssemblyFileVersion("1.5.2.78")]
|
||||
[assembly: NeutralResourcesLanguageAttribute( "en-US" )]
|
||||
|
||||
|
@ -111,8 +111,13 @@
|
||||
public bool AutoUpdate { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Kick godmode and spamming assholes
|
||||
/// Kick godmode assholes
|
||||
/// </summary>
|
||||
public bool AntiAssholes { get; set; } = true;
|
||||
public bool KickGodMode { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Kick spamming assholes
|
||||
/// </summary>
|
||||
public bool KickSpamming { get; set; } = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user