ServerUtils

Summary

Methods

Method Returns
SetCustomMapName(name: string) void
GetCustomMapName() string | nil
ClearCustomMapName() void
SetCustomGameModeName(name: string) void
GetCustomGameModeName() string | nil
ClearCustomGameModeName() void

Methods

SetCustomMapName

SetCustomMapName(name: string)

Sets a custom map name to show in the server browser.

Parameters

Name Type Description
name string The custom map name.

GetCustomMapName

GetCustomMapName(): string | nil

Gets the custom map name shown in the server browser, or nil if one is not set.

Returns

Type Description
string | nil The custom map name, or nil if not is not set.

ClearCustomMapName

ClearCustomMapName()

Clears any custom map names and reverts to showing the real map name in the server browser.

SetCustomGameModeName

SetCustomGameModeName(name: string)

Sets a custom game mode name to show in the server browser.

Parameters

Name Type Description
name string The custom game mode name.

GetCustomGameModeName

GetCustomGameModeName(): string | nil

Gets the custom game mode name shown in the server browser, or nil if one is not set.

Returns

Type Description
string | nil The custom game mode name, or nil if not is not set.

ClearCustomGameModeName

ClearCustomGameModeName()

Clears any custom game mode names and reverts to showing the real game mode name in the server browser.