Added server side setting to allow the requirement of a client id from clients.

This commit is contained in:
woogerboy21 2015-08-07 15:52:55 -04:00
parent 94942e1a92
commit bc99024e4f
8 changed files with 18 additions and 5 deletions

View file

@ -120,7 +120,7 @@ private:
QString shutdownReason;
int shutdownMinutes;
QTimer *shutdownTimer;
bool isFirstShutdownMessage;
bool isFirstShutdownMessage, clientIdRequired;
mutable QMutex serverListMutex;
QList<ServerProperties> serverList;
@ -137,6 +137,7 @@ public:
QString getServerName() const { return serverName; }
QString getLoginMessage() const { QMutexLocker locker(&loginMessageMutex); return loginMessage; }
bool getGameShouldPing() const { return true; }
bool getClientIdRequired() const { return clientIdRequired; }
int getPingClockInterval() const { return pingClockInterval; }
int getMaxGameInactivityTime() const { return maxGameInactivityTime; }
int getMaxPlayerInactivityTime() const { return maxPlayerInactivityTime; }