特征

  • 允许管理员探测整个建筑物(包括可部署对象)
  • 允许管理员更改或删除整个建筑物(包括可部署对象)的所有权
  • 允许管理员查看橱柜/炮塔授权
  • 允许管理员更改附近所有橱柜/炮塔的授权
  • 支持消息本地化
  • 支持 authLevel 和权限认证。
  • 为其他插件提供 API 以便轻松集成

聊天命令

  • /prod— 检查您正在查看的实体的所有权
  • /own— 设置您正在查看的实体的所有权
  • /own all– 赋予自己整个结构(包括可部署对象)的所有权
  • /own all <player name>— 授予指定玩家整个结构(包括可部署对象)的所有权
  • /unown all— 从整个结构(包括可部署对象)中删除所有权
  • /prod2— 检查整个结构(包括可部署对象)的所有权
  • /prod2 block— 检查结构的所有权(并且仅检查结构)
  • /prod2 cupboard— 检查附近橱柜的授权
  • /prod2 storage— 检查附近存储容器的所有权
  • /auth— 检查您正在查看的橱柜的授权
  • /auth cupboard— 列出当前在橱柜中授权的所有玩家
  • /auth turret— 检查您正在查看的炮塔的授权
  • /auth PlayerName– 在你正在查看的橱柜上授权目标玩家
  • /auth cupboard PlayerName— 授权附近所有橱柜给目标玩家
  • /auth turret PlayerName— 将附近所有炮塔的授权授予目标玩家
  • /deauth PlayerName— 从目标玩家中删除您正在查看的橱柜的授权
  • /deauth cupboard PlayerName— 从目标玩家中删除附近所有橱柜的授权
  • /deauth turret PlayerName— 从目标玩家那里移除附近所有炮塔的授权

Own/Prod2/Unown 选项

  • 存储
  • 标志
  • 睡袋
  • 植物
  • 烤箱
  • 炮塔
  • 橱柜

权限

此插件使用权限系统。若要分配权限,请使用 .若要删除权限,请使用 。oxide.grant <user or group> <name or steam id> <permission>oxide.revoke <user or group> <name or steam id> <permission>
  • entityowner.canchangeowners— 允许玩家使用身份验证和自己的命令
  • entityowner.cancheckowners— 允许玩家使用 prod 命令
  • entityowner.cancheckcodes— 允许玩家查看密码锁定代码
  • entityowner.seedetails— 允许玩家查看有关对象的其他详细信息(预制件名称、皮肤 ID 等)

配置

可以在目录下的文件中配置设置和选项。建议使用编辑器和验证器,以避免格式问题和语法错误。EntityOwnerconfig
  • EntityLimit(默认值:8000)
    任何给定所有权命令中可以包含的实体数量都有硬性上限。默认情况下,此上限为 8000。
  • messages(本地化)
    可以将 EntityOwner 发送的大多数消息更改为不同的语言。
  • DistanceThreshold(默认值:3)
    建议每次将阈值降低十分之一(2.9、2.8、2.7 ..),直到您对使用 /own 和 /prod2 等命令时的精度级别感到满意为止。

DistanceThreshold 选项允许您配置所有权命令对其他附近实体(从第一个实体开始)的搜索距离。更改阈值将使所有权命令或多或少精确。

开发者 API

Copy
// Gets the name and status of the owner player
// Returns null if no owner found
string GetOwnerName(BaseEntity entity)

// Get the BasePlayer instance (if known) of the owner player
// Returns null if no owner found
BasePlayer GetOwnerPlayer(BaseEntity entity)

// Removes the ownership data from a BasePlayer
RemoveOwner(BaseEntity entity)

// Changes ownership of a BaseEntity to the specified player
ChangeOwner(BaseEntity entity, BasePlayer player)

// Retrieves the owner player.userID in string format
// Returns false when no owner found
object FindEntityData(BaseEntity entity)

// Clears all deployable associations with a particular player
ClearDeployableProfile(BasePlayer player)

// Clears all construction associations with a particular player
ClearConstructionProfile(BasePlayer player)

// Grab all constructions associated with a particular player
List<BuildingBlock> GetProfileConstructions(BasePlayer player)

// Grab all deployables associated with a particular player
List<BaseEntity> GetProfileDeployables(BasePlayer player)
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。