diff --git a/application/core/Libs/Maniaplanet/DedicatedServer/Connection.php b/application/core/Libs/Maniaplanet/DedicatedServer/Connection.php index 50559092..f88d942a 100755 --- a/application/core/Libs/Maniaplanet/DedicatedServer/Connection.php +++ b/application/core/Libs/Maniaplanet/DedicatedServer/Connection.php @@ -2176,7 +2176,7 @@ class Connection /** * Set new server options using the struct passed as parameters. * Mandatory fields: - * Name, Comment, Password, PasswordForSpectator and CallVoteRatio. + * Name, Comment, Password, PasswordForSpectator, NextCallVoteTimeOut and CallVoteRatio. * Ignored fields: * LadderServerLimitMin, LadderServerLimitMax and those starting with Current. * All other fields are optional and can be set to null to be ignored. diff --git a/application/core/Libs/Maniaplanet/DedicatedServer/Structures/ServerOptions.php b/application/core/Libs/Maniaplanet/DedicatedServer/Structures/ServerOptions.php index 131ee013..f770ee62 100755 --- a/application/core/Libs/Maniaplanet/DedicatedServer/Structures/ServerOptions.php +++ b/application/core/Libs/Maniaplanet/DedicatedServer/Structures/ServerOptions.php @@ -82,8 +82,8 @@ class ServerOptions extends AbstractStructure && is_string($this->comment) && is_string($this->password) && is_string($this->passwordForSpectator) - && VoteRatio::isRatio($this->callVoteRatio) - && is_int($this->nextCallVoteTimeOut); + && is_int($this->nextCallVoteTimeOut) + && VoteRatio::isRatio($this->callVoteRatio); } /**