- Ban durations (TODO: add a way to set and view the durations through the menus).
- Separated ban & kick methods. - Fixed compilation errors in DebugConsole when building the server.
This commit is contained in:
@@ -171,7 +171,15 @@ namespace Barotrauma.Networking
|
||||
|
||||
banReasonPrompt.Buttons[0].OnClicked += (btn, userData) =>
|
||||
{
|
||||
KickPlayer(clientName, textBox.Text, ban, rangeBan);
|
||||
if (ban)
|
||||
{
|
||||
//TODO: a way to set ban duration in the prompt
|
||||
BanPlayer(clientName, textBox.Text, ban, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
KickPlayer(clientName, textBox.Text);
|
||||
}
|
||||
return true;
|
||||
};
|
||||
banReasonPrompt.Buttons[0].OnClicked += banReasonPrompt.Close;
|
||||
|
||||
Reference in New Issue
Block a user