diff --git a/ChaChaGameStats/RconUTEngineWebAdminUT2k4.py b/ChaChaGameStats/RconUTEngineWebAdminUT2k4.py index 106bc7e..c7b5c0b 100644 --- a/ChaChaGameStats/RconUTEngineWebAdminUT2k4.py +++ b/ChaChaGameStats/RconUTEngineWebAdminUT2k4.py @@ -160,9 +160,19 @@ class RconUTEngineWebAdminUT2k4(RconUTEngineWebAdmin.RconUTEngineWebAdminMODCENT result["bWeaponStay"] = ServerGame["bWeaponStay"] else: result["bWeaponStay"] = None - result["SpawnProtectionTime"] = ServerGame["SpawnProtectionTime"] + + if "SpawnProtectionTime" in ServerGame: + result["SpawnProtectionTime"] = ServerGame["SpawnProtectionTime"] + else: + result["SpawnProtectionTime"] = None + result["bAllowBehindView"] = ServerRules["bAllowBehindView"] - result["bAllowWeaponThrowing"] = ServerRules["bAllowWeaponThrowing"] + + if "bAllowWeaponThrowing" in ServerGame: + result["bAllowWeaponThrowing"] = ServerRules["bAllowWeaponThrowing"] + else: + result["bAllowWeaponThrowing"] = None + result["bWeaponShouldViewShake"] = ServerRules["bWeaponShouldViewShake"] result["bAllowPrivateChat"] = ServerRules["bAllowPrivateChat"] result["bAllowTaunts"] = ServerRules["bAllowTaunts"] diff --git a/ChaChaGameStats/_version.py b/ChaChaGameStats/_version.py index 882481d..7d3ab9a 100644 --- a/ChaChaGameStats/_version.py +++ b/ChaChaGameStats/_version.py @@ -7,4 +7,4 @@ Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Unported You should have received a copy of the license along with this work. If not, see . """ -__version__ = "0.1.12" +__version__ = "0.1.13"