Skip to content

SpawnLock ​

Description ​

SpawnLock checks a character’s location when connecting. If it is inside a configured zone, the module teleports the player to one of that zone’s destinations and sends a notification.

Configuration ​

Default configuration ​

SpawnLock.json
json
{
    "m_Enable": 0,
    "m_Logging": 1,
    "m_Zones": [
        {
            "m_Name": "Tysy Military",
            "m_Positions": [
                {
                    "m_X": 1691.8900146484376,
                    "m_Y": 501.739990234375,
                    "m_Z": 14091.5,
                    "m_R": 500.0
                }
            ],
            "m_Teleports": [
                {
                    "m_X": 2176.003662109375,
                    "m_Y": 392.4811096191406,
                    "m_Z": 14201.8515625
                },
                {
                    "m_X": 2091.23876953125,
                    "m_Y": 417.6770324707031,
                    "m_Z": 13794.783203125
                },
                {
                    "m_X": 1654.6561279296876,
                    "m_Y": 446.7901306152344,
                    "m_Z": 14588.3486328125
                }
            ]
        }
    ],
    "m_Message": "You have been moved from area %ZoneName%"
}

Options ​

OptionTypeDescription
m_EnableboolWith 1, enables the module. With 0, disables it.
m_Zonesarray<object>Zones and their destinations.
m_MessagestringNotification text shown after teleporting. %ZoneName% is replaced with the zone name.
m_LoggingboolThe distributed file includes this field. The current teleport handler does not read it.

m_Zones[] ​

OptionTypeDescription
m_NamestringZone name.
m_Positionsarray<object>Positions checked for zone membership.
m_Teleportsarray<object>Possible destinations. The module picks one at random.

m_Zones[].m_Positions[] ​

OptionTypeDescription
m_XfloatWorld X coordinate in metres.
m_YfloatElevation in metres.
m_ZfloatWorld Z coordinate in metres.
m_RfloatRadius in metres.

m_Zones[].m_Teleports[] ​

OptionTypeDescription
m_XfloatWorld X coordinate in metres.
m_YfloatElevation in metres.
m_ZfloatWorld Z coordinate in metres.

Released under the MIT License.