Skip to content

Commit

Permalink
Adds Rounds Remaining for Nextmap
Browse files Browse the repository at this point in the history
- Adds the number of rounds remaining when players use the 'nextmap' phrase in chat
  • Loading branch information
data-bomb committed Mar 17, 2024
1 parent 81cc2e0 commit e0b96ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Si_Mapcycle/Si_Mapcycle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You should have received a copy of the GNU General Public License
using SilicaAdminMod;
using System.Linq;

[assembly: MelonInfo(typeof(MapCycleMod), "Mapcycle", "1.4.4", "databomb", "https://github.com/data-bomb/Silica")]
[assembly: MelonInfo(typeof(MapCycleMod), "Mapcycle", "1.4.5", "databomb", "https://github.com/data-bomb/Silica")]
[assembly: MelonGame("Bohemia Interactive", "Silica")]
[assembly: MelonOptionalDependencies("Admin Mod")]

Expand Down Expand Up @@ -275,7 +275,8 @@ public static void Command_NextMap(Player callerPlayer, String args)
return;
}

HelperMethods.ReplyToCommand_Player(callerPlayer, ": The next map is " + sMapCycle[(iMapLoadCount + 1) % (sMapCycle.Length - 1)]);
int roundsLeft = Pref_Mapcycle_RoundsBeforeChange.Value - roundsOnSameMap;
HelperMethods.ReplyToCommand_Player(callerPlayer, ": The next map is " + sMapCycle[(iMapLoadCount + 1) % (sMapCycle.Length - 1)] + ". " + roundsLeft.ToString() + " more round" + (roundsLeft == 1 ? "" : "s") + " before map changes.");
}

public static void Command_ChangeMap(Player callerPlayer, String args)
Expand Down

0 comments on commit e0b96ac

Please sign in to comment.