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
| Option | Type | Description |
|---|---|---|
m_Enable | bool | With 1, enables the module. With 0, disables it. |
m_Zones | array<object> | Zones and their destinations. |
m_Message | string | Notification text shown after teleporting. %ZoneName% is replaced with the zone name. |
m_Logging | bool | The distributed file includes this field. The current teleport handler does not read it. |
m_Zones[]
| Option | Type | Description |
|---|---|---|
m_Name | string | Zone name. |
m_Positions | array<object> | Positions checked for zone membership. |
m_Teleports | array<object> | Possible destinations. The module picks one at random. |
m_Zones[].m_Positions[]
| Option | Type | Description |
|---|---|---|
m_X | float | World X coordinate in metres. |
m_Y | float | Elevation in metres. |
m_Z | float | World Z coordinate in metres. |
m_R | float | Radius in metres. |
m_Zones[].m_Teleports[]
| Option | Type | Description |
|---|---|---|
m_X | float | World X coordinate in metres. |
m_Y | float | Elevation in metres. |
m_Z | float | World Z coordinate in metres. |
