From 7af837e24db5a8bbbf39bfa6aec10c161c0775ee Mon Sep 17 00:00:00 2001 From: MrOkiDoki <0mrokidoki@gmail.com> Date: Sun, 27 Aug 2023 21:45:27 +0300 Subject: [PATCH] CTF bug on API --- BattleBitAPI/Common/Conts.cs | 4 ++-- BattleBitAPI/Server/Internal/ServerSettings.cs | 11 +++++++++++ CommunityServerAPI.csproj | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/BattleBitAPI/Common/Conts.cs b/BattleBitAPI/Common/Conts.cs index 14dffab..cdd1f55 100644 --- a/BattleBitAPI/Common/Conts.cs +++ b/BattleBitAPI/Common/Conts.cs @@ -33,10 +33,10 @@ public const int MaxTokenSize = 512; public const int MinGamemodeNameLength = 2; - public const int MaxGamemodeNameLength = 12; + public const int MaxGamemodeNameLength = 64; public const int MinMapNameLength = 2; - public const int MaxMapNameLength = 36; + public const int MaxMapNameLength = 64; public const int MinLoadingScreenTextLength = 0; public const int MaxLoadingScreenTextLength = 1024 * 8; diff --git a/BattleBitAPI/Server/Internal/ServerSettings.cs b/BattleBitAPI/Server/Internal/ServerSettings.cs index 7cadb7f..052f845 100644 --- a/BattleBitAPI/Server/Internal/ServerSettings.cs +++ b/BattleBitAPI/Server/Internal/ServerSettings.cs @@ -56,6 +56,17 @@ namespace BattleBitAPI.Server mResources.IsDirtyRoomSettings = true; } } + public bool HideMapVotes + { + get => mResources._RoomSettings.HideMapVotes; + set + { + if (mResources._RoomSettings.HideMapVotes == value) + return; + mResources._RoomSettings.HideMapVotes = value; + mResources.IsDirtyRoomSettings = true; + } + } public bool CanVoteDay { get => mResources._RoomSettings.CanVoteDay; diff --git a/CommunityServerAPI.csproj b/CommunityServerAPI.csproj index 0129f7e..fcd53a0 100644 --- a/CommunityServerAPI.csproj +++ b/CommunityServerAPI.csproj @@ -18,7 +18,7 @@ https://github.com/MrOkiDoki/BattleBit-Community-Server-API https://github.com/MrOkiDoki/BattleBit-Community-Server-API BattleBit - 1.0.3 + 1.0.4