SimpleScoreboard
适用于 Paper 的配置化记分板插件。使用 YAML 编写侧边栏、标签页列表和名字下方显示,或从游戏内的箱子 GUI 中进行编辑。支持按世界、权限或游戏模式进行多记分板优先级选择。支持帧旋转、水平滚动以及完整的 Adventure MiniMessage 格式。
功能
- 所有三个记分板槽位:侧边栏、标签页列表(头部 + 尾部)、名字下方目标
- 多记分板优先级列表,条件基于世界、权限、游戏模式(可组合,AND 逻辑评估,第一个匹配生效)
- 动画效果:帧旋转和文本水平滚动,每行可配置且精确到刻
- MiniMessage 用于所有文本 —— 颜色、渐变、彩虹色、点击和悬停事件
- 内置占位符,支持玩家、世界、延迟、坐标、游戏模式、生命值、在线人数、最大玩家数、TPS
- PlaceholderAPI 集成(当存在时)—— 每个
%papi_*% 令牌均可直接使用
- 游戏内 GUI 编辑器 (
/sb gui),适合急于定制的用户:通过带有实时预览的箱子菜单编辑记分板、条件、行和动画
- 子命令自动补全,涵盖所有
/sb 子命令,包括动态记分板名称
- 玩家独立切换并持久化 (
/sb toggle)
- 热重载,无需重启服务器 (
/sb reload)
- 基于差异的渲染:基于每位玩家上次发送内容的缓存,仅在输出实际发生变化时才发送数据包 —— 静态行不会重复发送
快速示例
defaults:
tick-interval: 1
scroll-width: 24
boards:
- name: pvp-arena
conditions:
worlds: [pvp_arena]
permission: server.staff
sidebar:
title:
type: rotate
interval: 10
frames:
- "<gradient:gold:red>STAFF</gradient>"
- "<gradient:red:gold>STAFF</gradient>"
lines:
- "<dark_gray>───────────────"
- "<gray>Player: <white>%player%"
- "<gray>Kills: <red>%vault_kills%"
- ""
- type: scroll
width: 24
interval: 2
text: "Welcome to the staff PvP arena"
- "<dark_gray>───────────────"
- name: default
sidebar:
title: "<aqua>My Server"
lines:
- "<gray>Online: <white>%online%/%max-players%"
- "<gray>TPS: <green>%tps%"
tablist:
header: "<gold>My Server"
footer: "<gray>%online%/%max-players% online"
命令
| 命令 |
权限 |
描述 |
/sb gui [board] |
simplescoreboard.admin |
打开游戏内编辑器(可选跳转到特定记分板) |
/sb reload |
simplescoreboard.admin |
重新加载 scoreboard.yml。如果解析出错,旧配置将继续运行。 |
/sb list |
simplescoreboard.admin |
按优先级列出所有记分板 |
/sb show <board> |
simplescoreboard.admin |
强制为自己预览特定记分板 |
/sb show none |
simplescoreboard.admin |
清除预览,恢复正常选择 |
/sb toggle |
simplescoreboard.toggle |
隐藏/显示自己的记分板。偏好设置在重连后保持。 |
别名:/scoreboard, /simplescoreboard。
要求
- Paper(基于 API
26.1.2 构建)
- Java 25
- PlaceholderAPI —— 可选,仅在使用
%papi_*% 令牌时需要
安装
- 将
SimpleScoreboard.jar 放入你的 plugins/ 文件夹。
- 启动服务器。将在
plugins/SimpleScoreboard/ 中创建默认的 scoreboard.yml。
- 编辑 YAML 文件或运行
/sb gui 进行自定义。
/sb reload 可在不重启的情况下应用 YAML 更改。
配置
plugins/SimpleScoreboard/scoreboard.yml。顶层结构如下:
defaults:
tick-interval: 1 # 渲染间隔(刻)。1 = 完整动画分辨率。
scroll-width: 24 # 滚动行的默认字符窗口宽度
boards:
- name: <unique-name>
conditions: # 可选。省略表示捕获所有情况(匹配所有人)
worlds: [...] # 可选,这些世界中的任意一个
permission: ... # 可选,玩家必须拥有此权限
gamemodes: [...] # 可选,这些游戏模式中的任意一个
sidebar: # 可选,省略则不修改侧边栏
title: <line>
lines:
- <line>
tablist: # 可选
header: <line>
footer: <line>
below-name: # 可选
title: <line>
score: "%health%" # 任何解析为整数的占位符
行类型
<line> 可以是普通字符串(静态)或带类型的对象:
# 静态 — 纯 MiniMessage 字符串
"<gold>Hello %player%"
# 旋转 — 循环播放帧
type: rotate
interval: 10 # 每帧的刻数
frames: ["Frame A", "Frame B", "Frame C"]
# 滚动 — 在固定宽度内水平滚动
type: scroll
interval: 2 # 每次字符移动的刻数
width: 24 # 可见字符数
text: "Long welcome text that scrolls"
游戏内编辑器
/sb gui 打开基于箱子的编辑器。导航结构如下:
MainMenu (记分板列表 + 添加)
└── BoardMenu (重命名、删除、条件、槽位)
├── ConditionsMenu (世界、权限、游戏模式)
├── SidebarMenu (标题 + 行,排序、添加、移除)
│ └── LineEditMenu (静态 / 旋转 / 滚动切换器)
│ └── RotateFramesMenu (用于旋转类型)
├── TablistMenu (头部、尾部、启用/禁用)
└── BelowNameMenu (标题、分数表达式、启用/禁用)
文本内容(标题、帧文本、滚动文本、分数表达式)通过聊天输入 —— 当你点击“编辑文本”时,菜单会关闭,你输入新的 MiniMessage 值,然后菜单重新打开。输入 !cancel 以取消。输入超时时间为 60 秒。
编辑期间,你自己的记分板会实时更新未保存的草稿,以便你在提交前查看效果。
保存时会重新生成 scoreboard.yml(首先创建一次 .backup 备份),原子性地替换文件并为所有玩家重新渲染。取消则丢弃草稿且不触碰文件。
注意:GUI 保存功能会通过 SnakeYAML 的标准转储器重写 YAML。手写注释不会被保留。如果你手动维护 scoreboard.yml 并对同一文件使用 GUI,请留意这一点。
内置占位符
| Token |
Resolves to |
%player% |
Player name |
%displayname% |
Adventure-Component display name (string form) |
%world% |
Current world name |
%gamemode% |
SURVIVAL / CREATIVE / ADVENTURE / SPECTATOR |
%ping% |
Player ping in ms |
%x%, %y%, %z% |
Integer block coordinates |
%health% |
Health rounded to integer |
%online% |
Online player count |
%max-players% |
Server slot count |
%tps% |
Server TPS (1 decimal) |
Anything else is forwarded to PlaceholderAPI when installed. Unknown tokens (no built-in, no PAPI) stay as raw text — useful for spotting typos visually.
Permissions
| Node |
Default |
Grants |
simplescoreboard.admin |
op |
/sb reload, /sb list, /sb show, /sb gui |
simplescoreboard.toggle |
true |
/sb toggle |
Performance
Each player has a per-tick render cycle. The renderer compares the freshly-built component list against a cached last-sent snapshot and only sends an update packet when a line actually differs. Static lines without dynamic placeholders never re-send. Frame-rotation and scrolling lines re-send only when the frame index or scroll offset changes.
scoreboard.yml is parsed once at startup (and on /sb reload). The BoardRegistry uses an atomic reference, so reloads are wait-free for the render loop.
Compatibility Notes
- The Sidebar slot is rendered through the FastBoard library (shaded and relocated). Plays nicely alongside any other scoreboard plugin that touches Tab-list or Below-Name only.
- Two plugins both writing the Sidebar will conflict — disable one or coordinate via permissions.
- Tab-list is set per-player via Paper's Adventure API. Tab-list-modifying plugins (e.g. some prefix systems that write the player-list display name) are independent and won't conflict.
SimpleScoreboard
A configurable scoreboard plugin for Paper. Author your sidebar, tab-list, and below-name displays in YAML or edit them in-game from a chest GUI. Multi-board priority selection by world, permission, or gamemode. Frame rotation, horizontal scrolling, and full Adventure MiniMessage formatting.
Features
- All three scoreboard slots: sidebar, tab-list (header + footer), below-name objective
- Multi-board priority list with conditions on world, permission, gamemode (combinable, AND-evaluated, first match wins)
- Animations: frame rotation and horizontal text scrolling, configurable per line and tick-precise
- MiniMessage for all text — colors, gradients, rainbows, click and hover events
- Built-in placeholders for player, world, ping, coords, gamemode, health, online count, max players, TPS
- PlaceholderAPI integration when present — every
%papi_*% token just works
- In-game GUI editor (
/sb gui) for the impatient: edit boards, conditions, lines, and animations from a chest menu with live preview
- Tab-completion on every
/sb subcommand including dynamic board names
- Per-player toggle with persistence (
/sb toggle)
- Hot reload without server restart (
/sb reload)
- Diff-based render: per-player last-sent cache means packets only fire when output actually changes — static lines never re-send
Quick Example
defaults:
tick-interval: 1
scroll-width: 24
boards:
- name: pvp-arena
conditions:
worlds: [pvp_arena]
permission: server.staff
sidebar:
title:
type: rotate
interval: 10
frames:
- "<gradient:gold:red>STAFF</gradient>"
- "<gradient:red:gold>STAFF</gradient>"
lines:
- "<dark_gray>───────────────"
- "<gray>Player: <white>%player%"
- "<gray>Kills: <red>%vault_kills%"
- ""
- type: scroll
width: 24
interval: 2
text: "Welcome to the staff PvP arena"
- "<dark_gray>───────────────"
- name: default
sidebar:
title: "<aqua>My Server"
lines:
- "<gray>Online: <white>%online%/%max-players%"
- "<gray>TPS: <green>%tps%"
tablist:
header: "<gold>My Server"
footer: "<gray>%online%/%max-players% online"
Commands
| Command |
Permission |
Description |
/sb gui [board] |
simplescoreboard.admin |
Open the in-game editor (optionally jumping to a specific board) |
/sb reload |
simplescoreboard.admin |
Reload scoreboard.yml. On parse error the old config keeps running. |
/sb list |
simplescoreboard.admin |
List boards in priority order |
/sb show <board> |
simplescoreboard.admin |
Force-preview a specific board for yourself |
/sb show none |
simplescoreboard.admin |
Clear preview, return to normal selection |
/sb toggle |
simplescoreboard.toggle |
Hide/show your own scoreboard. Preference persists across reconnects. |
Aliases: /scoreboard, /simplescoreboard.
Requirements
- Paper (built against API
26.1.2)
- Java 25
- PlaceholderAPI — optional, only needed for
%papi_*% tokens
Installation
- Drop
SimpleScoreboard.jar into your plugins/ folder.
- Start the server. A default
scoreboard.yml is created in plugins/SimpleScoreboard/.
- Edit the YAML or run
/sb gui to customize.
/sb reload applies YAML changes without restart.
Configuration
plugins/SimpleScoreboard/scoreboard.yml. Top-level structure:
defaults:
tick-interval: 1 # ticks between renders. 1 = full animation resolution.
scroll-width: 24 # default character window for scrolling lines
boards:
- name: <unique-name>
conditions: # optional. omit = catch-all (matches everyone)
worlds: [...] # optional, any of these worlds
permission: ... # optional, player must have this permission
gamemodes: [...] # optional, any of these gamemodes
sidebar: # optional, omit to leave sidebar untouched
title: <line>
lines:
- <line>
tablist: # optional
header: <line>
footer: <line>
below-name: # optional
title: <line>
score: "%health%" # any placeholder that resolves to an integer
Line types
A <line> is either a plain string (Static) or a typed object:
# Static — plain MiniMessage string
"<gold>Hello %player%"
# Rotate — cycle through frames
type: rotate
interval: 10 # ticks per frame
frames: ["Frame A", "Frame B", "Frame C"]
# Scroll — horizontal scroll within a fixed width
type: scroll
interval: 2 # ticks per character shift
width: 24 # visible characters
text: "Long welcome text that scrolls"
In-Game Editor
/sb gui opens a chest-based editor. Navigation:
MainMenu (board list + add)
└── BoardMenu (rename, delete, conditions, slots)
├── ConditionsMenu (worlds, permission, gamemodes)
├── SidebarMenu (title + lines, reorder, add, remove)
│ └── LineEditMenu (Static / Rotate / Scroll switcher)
│ └── RotateFramesMenu (for Rotate type)
├── TablistMenu (header, footer, enable/disable)
└── BelowNameMenu (title, score expression, enable/disable)
Text content (titles, frame text, scroll text, score expressions) is entered through chat — when you click "Edit text" the menu closes, you type the new MiniMessage value, and the menu reopens. Type !cancel to abort. Inputs time out after 60 seconds.
While editing, your own scoreboard updates live with the unsaved draft so you can see how it looks before committing.
Saving regenerates scoreboard.yml (a one-time .backup is created first), atomically replaces the file, and re-renders for all players. Cancel discards the draft without touching the file.
Note: GUI saves rewrite the YAML through SnakeYAML's standard dumper. Hand-written comments are not preserved. Keep that in mind if you maintain scoreboard.yml by hand and use the GUI on the same file.
Built-in Placeholders
| Token |
Resolves to |
%player% |
Player name |
%displayname% |
Adventure-Component display name (string form) |
%world% |
Current world name |
%gamemode% |
SURVIVAL / CREATIVE / ADVENTURE / SPECTATOR |
%ping% |
Player ping in ms |
%x%, %y%, %z% |
Integer block coordinates |
%health% |
Health rounded to integer |
%online% |
Online player count |
%max-players% |
Server slot count |
%tps% |
Server TPS (1 decimal) |
Anything else is forwarded to PlaceholderAPI when installed. Unknown tokens (no built-in, no PAPI) stay as raw text — useful for spotting typos visually.
Permissions
| Node |
Default |
Grants |
simplescoreboard.admin |
op |
/sb reload, /sb list, /sb show, /sb gui |
simplescoreboard.toggle |
true |
/sb toggle |
Performance
Each player has a per-tick render cycle. The renderer compares the freshly-built component list against a cached last-sent snapshot and only sends an update packet when a line actually differs. Static lines without dynamic placeholders never re-send. Frame-rotation and scrolling lines re-send only when the frame index or scroll offset changes.
scoreboard.yml is parsed once at startup (and on /sb reload). The BoardRegistry uses an atomic reference, so reloads are wait-free for the render loop.
Compatibility Notes
- The Sidebar slot is rendered through the FastBoard library (shaded and relocated). Plays nicely alongside any other scoreboard plugin that touches Tab-list or Below-Name only.
- Two plugins both writing the Sidebar will conflict — disable one or coordinate via permissions.
- Tab-list is set per-player via Paper's Adventure API. Tab-list-modifying plugins (e.g. some prefix systems that write the player-list display name) are independent and won't conflict.
评论 0
登录后参与评分
还没有评论,来抢沙发吧