Re-enabled vote kicking, with some improvements: chat messages notifying about votes, kick button is disabled for the host's character or if already voted
This commit is contained in:
@@ -103,6 +103,13 @@ namespace Barotrauma
|
||||
|
||||
kicked.AddKickVote(sender);
|
||||
|
||||
if (GameMain.Server != null)
|
||||
{
|
||||
GameMain.Server.SendChatMessage(
|
||||
ChatMessage.Create("", sender.name + " has voted to kick " + kicked.name, ChatMessageType.Server, null),
|
||||
GameMain.Server.ConnectedClients);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user