mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
add "kickEveryone" debug setting
This commit is contained in:
parent
6cd337f3db
commit
b832992ab5
@ -71,6 +71,13 @@ public class PlayerJoinMessage : QSBMessage
|
||||
{
|
||||
if (QSBCore.IsHost)
|
||||
{
|
||||
if (QSBCore.DebugSettings.KickEveryone)
|
||||
{
|
||||
DebugLog.ToConsole($"Kicking {PlayerName} because of DebugSettings.KickEveryone", MessageType.Error);
|
||||
new PlayerKickMessage(From, "This server has DebugSettings.KickEveryone enabled.").Send();
|
||||
return;
|
||||
}
|
||||
|
||||
if (QSBVersion != QSBCore.QSBVersion)
|
||||
{
|
||||
DebugLog.ToConsole($"Error - Client {PlayerName} connecting with wrong QSB version. (Client:{QSBVersion}, Server:{QSBCore.QSBVersion})", MessageType.Error);
|
||||
|
@ -26,6 +26,9 @@ public class DebugSettings
|
||||
[JsonProperty("skipTitleScreen")]
|
||||
public bool SkipTitleScreen;
|
||||
|
||||
[JsonProperty("kickEveryone")]
|
||||
public bool KickEveryone;
|
||||
|
||||
[JsonProperty("debugMode")]
|
||||
public bool DebugMode;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user