From 0af057fd28b305416ca8c60f0295c4343eb95489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Sat, 19 Jul 2014 21:50:54 +0200 Subject: [PATCH] dedi-api update --- .../core/Libs/Maniaplanet/DedicatedServer/Connection.php | 2 +- .../Maniaplanet/DedicatedServer/Structures/ServerOptions.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); } /**