About This File
来源:https://arkserverapi.com/index.php?resources/safezones.2/
安全区域
- 防止 PVP 在某些地区的
- 防止在某些地区建造
- 防止特定区域的结构损坏
- 关于进出安全区的通知
- 能够限制玩家加入/离开区域
- 能够在安全区中提供物品
- 更改生成点
- 配置重新加载
- 支持权限插件
控制台命令:
- SZGiveItems <ZoneName> - 向该区域内的所有玩家提供从配置的项目。
- SZEnterSettings <ZoneName> < 防止进入> < 防止离开 > - 更改安全区输入设置。防止进入和防止离开可以是1 或 0。
- SZreloadConfig - 重新加载json配置。
权限:
- SafeZones.<Name> - 进入特定区域的权限(如果启用了“ PreventEntering”). 示例: SafeZones.Zone1
json示例:
{ "ServerName":"ServerNameHere", "NotificationScale":1.0, "NotificationDisplayTime":5.0, "AdminsIgnoreRestrictions":false, "SafeZones":[ { "Name":"Zone1",// 安全区名称 "Position":[ // 安全区坐标 -111820, 233874, -14259.6 ], "Radius":1800,// 安全区范围半径大小 "PreventPVP":true, "PreventStructureDamage":true, "PreventBuilding":true, "KillWildDinos":true, // 是否杀死区内所有野生恐龙 "PreventLeaving":false,// 防止玩家离开该区 "PreventEntering":false,// 防止玩家进入该区 "EnableEvents":true,//
诸如PreventLeaving,PreventEntering,Notification之类的选项需要启用才能使用"ScreenNotifications":true,// 是否在顶部显示安全区浮动消息 "ChatNotifications":true,// 是否在聊天框显示安全区消息 "SuccessNotificationColor":[ 0, 1, 0, 1 ], "FailNotificationColor":[ 1, 0, 0, 1 ], "Messages":[ "You have entered {0}", "You have left {0}", "This is a Community trade center you can not build here", "You are not allowed to enter", "You are not allowed to leave" ], "ItemsConfig":{ // SZGiveItems命令发送给该安全区内玩家的物品 "Items":[ { "Amount":1, "Quality":0, "ForceBlueprint":false, "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Items/Armor/Saddles/PrimalItemArmor_CarnoSaddle.PrimalItemArmor_CarnoSaddle'" } ], "Dinos":[ { "Level":10, "Blueprint":"Blueprint'/Game/PrimalEarth/Dinos/Carno/Carno_Character_BP.Carno_Character_BP'" } ] } }, { "Name":"Zone2", "Position":[ -107117, 231616, -13854.6 ], "Radius":900, "PreventPVP":true, "PreventStructureDamage":false, "PreventBuilding":false, "KillWildDinos":true, "PreventLeaving":false, "PreventEntering":true, "EnableEvents":true, "ScreenNotifications":true, "ChatNotifications":true, "SuccessNotificationColor":[ 0, 1, 0, 1 ], "FailNotificationColor":[ 1, 0, 0, 1 ], "Messages":[ "You have entered {0}", "You have left {0}", "This is a Community trade center you can not build here", "You are not allowed to enter", "You are not allowed to leave" ] } ], "OverrideSpawnPoint":[ // 覆盖出生地坐标,从以下坐标随机复活 [ 184792, -263856, -13580.6 ], [ 181792, -223856, -13380.6 ] ] }