关于 XDFriends

Rust Server 的 Friends 插件

“Friends” 是一个强大而灵活的插件,旨在增强 Rust 中的游戏内好友系统。
它将有助于简化朋友之间的互动,简化授权过程,
以及访问重要的游戏元素,并管理朋友之间的伤害。

主要特点:

损害管制: 好友之间的伤害阻止集成功能有助于防止意外损坏。
可以通过命令轻松启用或禁用此功能。

增强的 Friends 授权系统: 该插件允许激活朋友对各种元素的授权,包括:

  • 炮塔
  • SAM 站点
  • 代码锁
  • 钥匙锁
  • 橱柜

从好友列表中删除后,该玩家将自动取消对所有列出的元素的授权。

远程好友邀请:使用特殊命令,您可以邀请玩家成为朋友,即使相距很远。

授权设置灵活性: 在代码锁定的两种授权方法之间进行选择 – 访客授权 (“guestPlayers”) 或完全授权 (“whitelistPlayers”)。

兼容性和优化: “Friends” 插件经过优化以实现最佳性能,并与许多其他插件兼容。

广泛的 API: 该插件为开发人员提供了一个全面的 API,提供了灵活性和进一步定制的可能性。

详细的日志记录系统:“Friends”包括一个日志记录系统,提供透明度和对活动的控制。

使用 Rust 服务器的“Friends”插件优化您的游戏玩法。
它将有助于改善您的游戏体验,简化与朋友的互动,并使您的服务器更安全、更易于管理。

命令:

  • /team – 其他信息
  • /team invite/add <昵称>
  • /team ff – 友军射击

默认配置:

{
  "Chat commands": [
    "team",
    "ff",
    "friend"
  ],
  "Maximum number of friends": 3,
  "Time to accept team invite (in seconds)": 20.0,
  "Enable friend authorization for turrets?": true,
  "Enable friend authorization for SAM sites?": true,
  "Enable friend authorization for code locks?": true,
  "Enable friend authorization for key locks?": true,
  "Enable friend authorization for cupboards?": true,
  "Authorization method for code locks (guestPlayers - guest authorization, whitelistPlayers - full authorization)": "guestPlayers",
  "Enable logging system ?": false,
  "Chat prefix (IQChat)": "<color=#5cd6skykey>[Friends]</color>\n"
}

面向开发人员的 API

HasFriend(ulong playerId, ulong friendId) //Checks if the specified user is a friend of the player.
HasFriends(string playerS, string friendS) //Checks if the player has friends by their string identifiers.
IsFriend(ulong playerId, ulong friendId) //Checks if the specified user is a friend of the player.
AreFriends(ulong playerId, ulong friendId) //Checks if the specified players are friends.
AreFriends(string playerS, string friendS) //Checks if the specified players are friends by their string identifiers.
IsFriends(string playerS, string friendS) //Checks if the player has friends by their string identifiers.
GetFriends(ulong playerId) //Returns the player's friends list.
GetFriendList(string playerS) //Returns the player's friends list by the string identifier.
GetFriends(string playerS) //Returns the player's friends list by the string identifier.
IsFriendOf(ulong playerId) //Returns a list of players who are friends of the specified player.
IsFriendOf(string playerS) //Returns a list of players who are friends of the specified player by the string identifier.
GetFriendList(ulong playerId) //Returns the friends list of the specified player.
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。