跳到主要内容

在 TAB 和计分板显示好友与未读

需要 PlaceholderAPI。星月羁绊的变量不用另外下载扩展,装好就能用。

第 1 步:先试变量​

在游戏里输入:

/papi parse me %starfriend_online%/%starfriend_friends%

聊天栏显示「3/12」这类数字,就是变量能用。

第 2 步:挑要用的变量​

想显示变量
在线好友 / 好友总数%starfriend_online%/%starfriend_friends%
未读留言数,没有时是空的%starfriend_unread_badge%
未读加好友申请,没有时是空的%starfriend_notice_badge%
自己的状态%starfriend_status%
恋人的名字%starfriend_relation_lover%

全部变量见 变量。

第 3 步:写进计分板​

不管用哪个计分板插件,都是把变量写进某一行,例如:

好友 %starfriend_online%/%starfriend_friends%
留言 %starfriend_unread_badge%

有未读时第二行显示数字,没有时只剩「留言」两个字。

第 4 步:写进 TAB​

在玩家名字后面加 %starfriend_notice_badge%,有新留言或申请时名字后面就多一个数字,最多显示 99。

会踩的坑​

变量读的是玩家在本服的资料,玩家要在这个子服在线才有数字。授权还没生效时全部变量都是空的。

%starfriend_relation_lover% 有多位时用逗号隔开。恋人默认 max: 1,只会有一个名字。

0:000:00