It's a map rotator, but it's new.Okay, so this was influenced by
this topic.
The map rotator works with RTB's server control feature so you have pretty much full control over the functionality of the script.
If you don't have the RTB server control (or another add-on that is compatible with the RTB hooks), I'd recommend getting it
here.
So, the script contains
3 5 commands.
/mapHelp - Probably the most important command, if you have the rights to use the other 2 commands (dictated in the prefs) they will show up when calling this one.
/voteNext - Allows players (who are of a certain permission - again dictated in the prefs) to vote for the next map, the next map will automatically load when up to
n players have called this command. The minimum number of votes are available to edit in the prefs. By calling /voteNext once you've already voted, it will cancel your vote.
/nextMap - Allows a user (of a certain permission - the prefs of course) to load the next map at any time during the game.
New Commands:/reloadmaps - Reloads the server's collection of maps so you can add more maps to the rotator whilst the server is running.
/mapList - Shows you a list of maps that the server has collected.
Important:For this to work, you
have to be in a
DEFAULT minigame, it can't just be a minigame, it has to be default.
The commands will not work unless you are in a default minigame.
This also has a 'cooldown' spam protection which again can be adjusted in the server prefs.
The server prefs include:Map Rotation:Enabled - Turn it on and it works, turn it off and it doesn't!
Who can vote for the next map? - Restricts the /voteNext to whatever is set (Anyone/Admin/Super/Host)
Who can call the next map? - Restricts the /nextMap to whatever is set (Admin/Super/Host)
Minimum votes to next map - When the /voteNext is called, it'll add up the votes until this set number, it'll then load the next map automatically.
How many seconds before next cmd - This is cool-down spam restriction timer, a number between 0 & 59 (seconds) before a player can call another command.
After how many rounds to load next? - A number between 1 & 10, when the minigame resets, it'll add up until this set number, it'll then automatically change the level.
Map Rotation - Maps:Up to 10 maps can be set - Scratched in update, see below!
UPDATE v1.1
So, what's new?
Instead of specifying the 10 saves in the server prefs, it will automatically pick up save files in a folder called "NewMapRotation" within the Blockland Server's saves folder. If you run the server with the updated version of this add-on, it will automatically create that folder for you and place a cheeky readme file in it.
New commands:
/reloadmaps - Reloads the server's collection of maps so you can add more maps to the rotator whilst the server is running.
/mapList - Shows you a list of maps that the server has collected.
--
I'll be working on Slayer preferences for the next update.
When the rotator kicks in:
All players will be put into observer mode (practically un-spawned).
The script will clear all of the bricks that were previously loaded.
The script will then load the next save file in the map rotations list.
Players will be respawned in the appropriate spawn-points.
IMPORTANT: When you load the mod and are running a default minigame, please use /nextmap to start the rotation system!All sorted? Awesome.
Place the add-on into the add-ons folder of your Blockland Server, and enable it. All the standard stuff.
Download here