好友系统
你是否曾希望在你的服务器中拥有一个社交系统,鼓励玩家邀请好友、奖励他们一起游玩,并追踪他们的每日连续在线记录?一个包含等级、奖励和独特火焰连续打卡系统的完整推荐计划?
幸运的是,我的插件实现了这一切!
我最初为运行在 1.21.1 版本的 Paper 服务器制作了这个插件,但我认为它在更高版本上也能正常工作。
因此,该插件包含以下内容:
推荐系统
每位玩家都会获得一个唯一的 6 位字符推荐码:
- 玩家与朋友分享他们的代码
- 新玩家使用
/code <code> 输入代码
- 满足要求后计入好友数量
- 可配置的要求:在线天数和游戏时长
好友等级
玩家通过带来好友获得奖励:
- 可配置的等级与不同目标
- 示例:5 位好友、10 位好友、25 位好友
- 升级时自动执行奖励命令
- GUI 可查看所有等级和奖励
火焰连续打卡系统
一种独特的“好友连续打卡”机制:
- 玩家使用
/streak invite <player> 配对
- 两种模式:any_login(任意登录)或 online_together(同时在线)
- 当两位玩家都满足要求时,连续天数每日增长
- 如果漏掉一天,连续记录中断
- 通过 PlaceholderAPI 在聊天栏显示火焰图标
连续记录恢复
- 使用
/friend restore 恢复中断的连续记录
- 可配置每月恢复次数上限
- 可配置天数限制(超过一定天数后无法恢复)
- 在宽容与公平之间取得平衡
连续记录奖励
- 达到特定连续天数可获得奖励
- 可配置的目标与命令
- 示例:7 天、30 天、100 天
- GUI 可查看并领取奖励
排行榜
/streak top — 查看服务器前 10 名连续记录
/streak list — 查看你当前的活跃连续记录
/streak info <player> — 查看连续记录详情
PlaceholderAPI 支持
| 占位符 |
描述 |
%fire_friend_streak% |
玩家的最高连续记录 |
%rel_fire_friend_streak% |
两位玩家之间的连续记录 |
%fire_friend_count% |
玩家的好友数量 |
%fire_friend_code% |
玩家的推荐码 |
GUI 奖励系统
- 精美的物品栏界面
- 可用、锁定和已领取的奖励
- 进度条显示目标完成情况
- 点击即可领取奖励
每日检查
- 每天凌晨 00:01 自动检查
- 验证登录天数和游戏时长
- 更新连续记录与好友数量
- 自动发放奖励
命令
| 命令 |
描述 |
/code <code> |
激活推荐码 |
/friend code |
显示你的推荐码 |
/friend progress |
查看下一级进度 |
/friend restore |
恢复中断的连续记录 |
/streak invite <player> |
邀请加入连续记录配对 |
/streak accept <player> |
接受连续记录邀请 |
/streak decline <player> |
拒绝连续记录邀请 |
/streak list |
查看你的连续记录 |
/streak top |
查看排行榜 |
/streak info <player> |
查看连续记录信息 |
/streak break <player> |
终止连续记录 |
/rewards |
打开奖励 GUI |
权限
| 权限 |
描述 |
friendsystem.use |
使用好友系统命令 |
friendsystem.admin |
访问管理员命令 |
配置
| 部分 |
描述 |
levels |
好友数量等级与奖励 |
streak_rewards |
连续长度奖励 |
friends_rewards |
好友相关的 GUI 奖励 |
streak_gui_rewards |
连续记录相关的 GUI 奖励 |
referral |
推荐要求 |
settings |
连续模式、宽限天数、恢复限制 |
如果遇到任何问题,请在 Telegram 上联系我!@AlexsandrDeveloper
(如果您对购买该插件的源代码感兴趣,也请留言给我)
Friend System
Have you ever wanted a social system on your server that encourages players to invite their friends, rewards them for playing together, and tracks their daily streaks? A complete referral program with levels, rewards, and a unique fire streak system?
Luckily for you, there's my plugin that makes it possible!
I originally made this for my Paper server on version 1.21.1, but I think it should work on higher versions too.
So, the plugin includes:
REFERRAL SYSTEM
Each player receives a unique 6-character referral code:
- Players share their code with friends
- New players enter the code with
/code <code>
- Friends are counted after meeting requirements
- Configurable requirements: days online and playtime
FRIEND LEVELS
Players earn rewards for bringing friends:
- Configurable levels with different goals
- Example: 5 friends, 10 friends, 25 friends
- Automatic reward commands on level up
- GUI to view all levels and rewards
FIRE STREAK SYSTEM
A unique "friend streak" mechanic:
- Players pair up with
/streak invite <player>
- Two modes: any_login or online_together
- Streak grows daily when both players meet the requirement
- Streak breaks if a day is missed
- Visual fire icon in chat via PlaceholderAPI
STREAK RESTORATION
- Restore broken streaks with
/friend restore
- Configurable restore limit per month
- Configurable days limit (can't restore after too many days)
- Balance between forgiveness and fairness
STREAK REWARDS
- Rewards for reaching certain streak lengths
- Configurable goals and commands
- Example: 7 days, 30 days, 100 days
- GUI to view and claim rewards
TOP STREAKS
/streak top — view top 10 streaks on the server
/streak list — view your active streaks
/streak info <player> — view streak details
PLACEHOLDERAPI SUPPORT
| Placeholder |
Description |
%fire_friend_streak% |
Player's best streak |
%rel_fire_friend_streak% |
Streak between two players |
%fire_friend_count% |
Player's friend count |
%fire_friend_code% |
Player's referral code |
GUI REWARD SYSTEM
- Beautiful inventory interface
- Available, locked, and claimed rewards
- Progress bars for goals
- Click to claim rewards
DAILY CHECK
- Automatic daily check at 00:01
- Verifies login days and playtime
- Updates streaks and friend counts
- Grants rewards automatically
COMMANDS
| Command |
Description |
/code <code> |
Activate referral code |
/friend code |
Show your referral code |
/friend progress |
View progress to next level |
/friend restore |
Restore a broken streak |
/streak invite <player> |
Invite to streak pair |
/streak accept <player> |
Accept streak invite |
/streak decline <player> |
Decline streak invite |
/streak list |
View your streaks |
/streak top |
View top streaks |
/streak info <player> |
View streak info |
/streak break <player> |
Break a streak |
/rewards |
Open rewards GUI |
PERMISSIONS
| Permission |
Description |
friendsystem.use |
Use friend system commands |
friendsystem.admin |
Access to admin commands |
CONFIGURATION
| Section |
Description |
levels |
Friend count levels and rewards |
streak_rewards |
Streak length rewards |
friends_rewards |
GUI rewards for friends |
streak_gui_rewards |
GUI rewards for streaks |
referral |
Referral requirements |
settings |
Streak mode, grace days, restore limits |
If you run into any issues, contact me on Telegram! @AlexsandrDeveloper
(Also message me if you're interested in buying the plugin's source code)
评论 0
登录后参与评分
还没有评论,来抢沙发吧