Release 1.8.7.0 - Calm Before the Storm Hotfix 1

This commit is contained in:
Regalis11
2025-04-16 12:46:39 +03:00
parent 38cce0c933
commit 1deef20f21
20 changed files with 103 additions and 53 deletions
@@ -284,7 +284,12 @@ namespace Barotrauma
break;
case VoteType.Kick:
byte kickedClientID = inc.ReadByte();
if ((DateTime.Now - sender.JoinTime).TotalSeconds < GameMain.Server.ServerSettings.DisallowKickVoteTime)
if (!GameMain.Server.ServerSettings.AllowVoteKick)
{
DebugConsole.ThrowError($"Client {sender.Name} attempted to vote to kick a client, even though vote kicking is disabled. Ignoring the vote.");
}
else if ((DateTime.Now - sender.JoinTime).TotalSeconds < GameMain.Server.ServerSettings.DisallowKickVoteTime)
{
GameMain.Server.SendDirectChatMessage($"ServerMessage.kickvotedisallowed", sender);
}