SuperFriends

插件

· 作者 drago_45_

这个 Minecraft 插件为服务器添加了好友功能!

0 本站下载 0 关注 更新于 4 个月前

最新 1.0.0 · 1.21.11 · Bukkit / Folia

一键开服(送7天)

SuperFriends

高级好友与社交插件 — 由 Dragon_45_ 制作
Paper • Purpur • Folia • Spigot • Bukkit
Minecraft 1.20.x – 1.21.x


✨ 功能

? 好友系统

  • 发送、接受和拒绝好友请求
  • 随时移除好友
  • 查看你的好友列表,显示实时状态和友谊等级
  • 可配置每个服务器的最大好友数量限制

⭐ 专属最佳好友

通过以下方式在你的好友中设置一位特殊的最佳好友:

/friend best <玩家>
  • 同时只允许一位挚友
  • 设置新的挚友会自动将之前的挚友降级
  • 带有 ⭐ 挚友标签高亮显示
  • 可以随时移除
  • 存储于数据库中,重启后依然保留

? 友谊等级

等级 要求
朋友 普通朋友关系
好朋友 10+ 次互动
⭐ 最佳好友 通过 /friend best 手动设置

? 在线状态与挂机系统

  • 实时状态:
    • ? 在线
    • ? 闲置(AFK)
    • ⛔ 请勿打扰(DND)
    • ? 隐身
  • 基于移动自动检测闲置状态
  • 无每刻刷屏(可配置间隔)
  • 可选显示世界名称
  • 勿扰模式玩家不会收到通知

? 每位玩家的个性化通知偏好

每位玩家都可以控制自己的通知设置。

命令 默认值
/friend notifications join on/off ✅ 开启
/friend notifications leave on/off ✅ 开启
/friend notifications death on/off ❌ 关闭
/friend notifications only_best on/off ❌ 关闭

? 每位玩家的隐私设置

选择谁可以与你互动。

命令 默认值
/friend privacy messages <level> 所有人
/friend privacy friend_requests <level> 所有人
/friend privacy see_status <level> 所有人

隐私等级

  • all(所有人)
  • friends_only(仅好友)
  • best_friends_only(仅挚友)
  • none(无人)

? 存储

SQLite

  • 内置支持
  • 零配置
  • 数据库存储路径:
plugins/SuperFriends/

MySQL

可选功能。

在 config.yml 中进行所有配置。

性能

  • 完全异步的数据库操作
  • 零主线程卡顿
  • 每 5 分钟自动批量保存
  • 退出时保存
  • 关闭服务器时保存
  • 离线玩家名称始终可用

? 命令

命令 权限
/friend add <玩家> superfriends.friend
/friend accept <玩家> superfriends.friend
/friend deny <玩家> superfriends.friend
/friend remove <玩家> superfriends.friend
/friend list superfriends.friend
/friend best <玩家> superfriends.friend
/friend privacy [action] [level] superfriends.friend
/friend notifications [type] [on/off] superfriends.friend
/superfriends info superfriends.admin
/superfriends reload superfriends.admin

别名

别名 命令
/f /friend
/friends /friend
/sf /superfriends

? MiniMessage 颜色支持

所有可配置的消息均支持完整的 MiniMessage 格式。

lang:
  prefix: "<dark_gray>[<light_purple><bold>SuperFriends</bold><dark_gray>] "

  friend_accepted: "<green>You are now friends with <white>{player}<green>!"

  friend_join: "<green>+ <white>{player} <green>is now online."

支持的格式

颜色

<green>
<red>
<gray>
<white>
<light_purple>
<dark_gray>

装饰

<strong>
<em>
<u>
<s>

十六进制颜色

<#FF6600>

渐变效果

<gradient:#ff0000:#0000ff>Text</gradient>

彩虹色

<rainbow>Text</rainbow>

MiniMessage 的渐变效果和十六进制颜色需要 Paper、Purpur 或 Folia。
在 Spigot/Bukkit 上,标准命名颜色依然可用。


⚙️ 配置

friends:
  max_friends: 100

presence:
  show_world: true
  afk_timeout_seconds: 300
  afk_check_interval_seconds: 10

database:
  type: sqlite
  file: "superfriends.db"

  mysql:
    host: "localhost"
    port: 3306
    database: "superfriends"
    username: "root"
    password: ""

lang:
  prefix: "<dark_gray>[<light_purple><bold>SuperFriends</bold><dark_gray>] "

? 平台兼容性

Platform 1.19.x 1.20.x 1.21.x
Paper ✅ ✅ ✅
Purpur ✅ ✅ ✅
Folia ✅ ✅ ✅
Spigot ✅ ✅ ✅
Bukkit ✅ ✅ ✅

启动时会自动检测平台。

通过反射加载 Folia 的区域线程调度器以实现完全兼容。


⚡ 性能

  • ? 主线程零数据库调用
  • ? 内存玩家缓存
  • ? 脏标记批量保存
  • ⏱️ 无逐刻循环
  • ? 事件驱动架构
  • ? SQLite JDBC 已打包进 JAR

? 安装

  1. 将 SuperFriends.jar 放入你的 plugins/ 文件夹中。
  2. 启动或重启服务器。
  3. 如有需要,编辑 plugins/SuperFriends/config.yml。
  4. 运行:
/sf reload

以重新加载配置。

无需任何依赖。
SQLite 已内置于插件中。


❤️ 鸣谢

由 Dragon_45_ 用 ❤️ 制作

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源