Skip to main content

Map Manager

The map manager is used to manipulate map rotations and sequences.


Get Available Maps

await RCONClientV1.maps.getAllMaps();

Returns

Promise<List<string>>


Get Maps in Rotation

await RCONClientV1.maps.getMapsInRotation();

Returns

Promise<Array<string>>


Add Map to Rotation

await RCONClientV1.maps.addMapToRotation(mapId, afterMap, afterMapOrdinal);

Parameters

NameDescriptionTypeRequired
mapIdThe map ID.stringTrue
afterMapThe ID of a map already in rotation.stringFalse
afterMapOrdinalThe ordinal position of the specified after map.stringFalse

Returns

Promise<"SUCCESS" | "FAIL">


Remove Map from Rotation

await RCONClientV1.maps.removeMapFromRotation(mapId, mapOrdinal);

Parameters

NameDescriptionTypeRequired
mapIdThe map ID.stringTrue
mapOrdinalThe ordinal position of the specified map if applicable.stringFalse

Returns

Promise<"SUCCESS" | "FAIL">


Toggle Map Shuffling

await RCONClientV1.maps.toggleMapShuffle();

Returns

Promise<"SUCCESS" | "FAIL">


Check if Map Shuffling is Enabled

await RCONClientV1.maps.getMapShufflingEnabled();

Returns

Promise<boolean>


Get the Map Sequence

await RCONClientV1.maps.getMapSequence();

Returns

Promise<Array<string>>