Scoredex
? 描述
Scoredex 是一个 Minecraft 模组,它会根据每位玩家捕获的宝可梦数量自动生成一张计分板图片。该模组在服务器端运行,无需安装客户端部分。
✨ 功能
- 自动生成计分板图片
- 定期刷新捕获统计数据
- 通过内置 Web 服务器访问界面
- 可自定义配置
- 支持多列显示,适用于玩家较多的服务器
- 完全自定义计分板颜色
- 可选择隐藏最后更新日期
/reloadscoredex 命令可在不重启服务器的情况下重新加载配置
? 安装
- 确保已安装 Cobblemon 模组
- 将 Scoredex
.jar 文件放入服务器的 mods 文件夹中
- 启动或重启服务器以激活模组
⚙️ 配置
配置文件会在服务器首次启动时自动创建。您可以在 Minecraft 服务器的 config 文件夹中找到名为 scoredex.json 的文件。
示例配置
{
"port": 8080,
"updateIntervalMinutes": 5,
"imageTitle": "Scoreboard - Captured Pokémon",
"timeZone": "Europe/Paris",
"autoDetectDataFolder": true,
"manualDataFolderPath": "",
"maxPlayers": 100,
"rowsPerColumn": 10,
"showLastUpdate": true,
"lastUpdateText": "Dernière mise à jour :",
"colors": {
"background": "#141414",
"titleBackground": "#3232C8",
"titleText": "#FFFFFF",
"topPlayerText": "#FFFFFF",
"firstPlaceBackground": "#FFD700",
"secondPlaceBackground": "#C0C0C0",
"thirdPlaceBackground": "#CD7F32",
"text": "#FFFFFF",
"footerText": "#FFFF00"
}
}
可用选项
| 选项 |
描述 |
默认值 |
port |
Web 服务器监听端口 |
8080 |
updateIntervalMinutes |
计分板更新频率(分钟) |
5 |
imageTitle |
计分板上显示的标题 |
"Scoreboard - Captured Pokémon" |
timeZone |
时间戳时区 |
"Europe/Paris" |
autoDetectDataFolder |
启用数据文件夹自动检测 |
true |
manualDataFolderPath |
数据文件夹的手动路径(如果禁用了 autoDetectDataFolder) |
"" |
maxPlayers |
计分板上显示的最大玩家数 |
100 |
rowsPerColumn |
每列的行数 |
10 |
showLastUpdate |
显示或隐藏最后更新的日期和时间 |
true |
colors |
计分板颜色字典(十六进制格式) |
参见示例 |
颜色自定义
可以通过修改以下颜色来自定义计分板的整体外观:
background: 计分板的通用背景颜色
titleBackground: 标题的背景颜色
titleText: 标题文本的颜色
topPlayerText: 前 3 名玩家文本的颜色
firstPlaceBackground: 第一名的背景颜色
secondPlaceBackground: 第二名的背景颜色
thirdPlaceBackground: 第三名的背景颜色
text: 其他玩家的文本颜色
footerText: 页脚文本颜色(更新日期)
计分板布局
计分板的布局会根据 maxPlayers 和 rowsPerColumn 参数自动调整:
- 列数会根据玩家数量和每列行数自动计算
- 如果玩家较多,请增加
rowsPerColumn 以创建更高的列
- 若要限制显示的玩家数量,请调整
maxPlayers 的值
?️ 访问图片
访问计分板图片的示例:
- 如果您的 Minecraft 连接 IP 是
122.244.17.217:27235
- 那么图片 URL 将是
http://122.244.17.217:8080/scoreboard.png
图片 URL 格式:http://MINECRAFTIP:8080/scoreboard.png
⚠️ 注意事项
- 如果您希望图片在本地网络之外可见,配置的端口必须可以从外部访问
- 任何配置更改后,请记住重启服务器
- 验证防火墙是否允许连接到配置的端口
- 如果模组无法正常工作,请联系您的服务器主机支持团队
? 兼容性
- 支持的 Minecraft 版本:1.21.1
- 需要安装 Cobblemon 模组
Scoredex
? Description
Scoredex is a Minecraft mod that automatically generates a scoreboard image based on the number of Pokémon captured by each player. This mod runs server-side and requires no client-side installation.
✨ Features
- Automatic generation of a scoreboard image
- Periodic refresh of capture statistics
- Accessible interface via integrated web server
- Customizable configuration
- Multi-column display for servers with many players
- Complete customization of scoreboard colors
- Option to hide the last update date
/reloadscoredex command to reload the config without restarting the server
? Installation
- Make sure the Cobblemon mod is installed
- Place the Scoredex
.jar file in the mods folder of your server
- Start or restart your server to activate the mod
⚙️ Configuration
The configuration file is automatically created when the server is first started. You will find it in the config folder of your Minecraft server under the name scoredex.json.
Example Configuration
{
"port": 8080,
"updateIntervalMinutes": 5,
"imageTitle": "Scoreboard - Captured Pokémon",
"timeZone": "Europe/Paris",
"autoDetectDataFolder": true,
"manualDataFolderPath": "",
"maxPlayers": 100,
"rowsPerColumn": 10,
"showLastUpdate": true,
"lastUpdateText": "Dernière mise à jour :",
"colors": {
"background": "#141414",
"titleBackground": "#3232C8",
"titleText": "#FFFFFF",
"topPlayerText": "#FFFFFF",
"firstPlaceBackground": "#FFD700",
"secondPlaceBackground": "#C0C0C0",
"thirdPlaceBackground": "#CD7F32",
"text": "#FFFFFF",
"footerText": "#FFFF00"
}
}
Available Options
| Option |
Description |
Default Value |
port |
Web server listening port |
8080 |
updateIntervalMinutes |
Scoreboard update frequency (in minutes) |
5 |
imageTitle |
Title displayed on the scoreboard |
"Scoreboard - Captured Pokémon" |
timeZone |
Time zone for timestamps |
"Europe/Paris" |
autoDetectDataFolder |
Enable automatic detection of the data folder |
true |
manualDataFolderPath |
Manual path to the data folder (if autoDetectDataFolder is disabled) |
"" |
maxPlayers |
Maximum number of players to display on the scoreboard |
100 |
rowsPerColumn |
Number of rows per column |
10 |
showLastUpdate |
Show or hide the date and time of the last update |
true |
colors |
Dictionary of scoreboard colors (hexadecimal format) |
See example |
Color Customization
The scoreboard can be completely customized by modifying the following colors:
background: General background color of the scoreboard
titleBackground: Background color of the title
titleText: Color of the title text
topPlayerText: Text color for players in the top 3 positions
firstPlaceBackground: Background color for first place
secondPlaceBackground: Background color for second place
thirdPlaceBackground: Background color for third place
text: Text color for other players
footerText: Footer text color (update date)
Scoreboard Layout
The layout of the scoreboard is automatically adjusted based on the maxPlayers and rowsPerColumn parameters:
- The number of columns is automatically calculated based on the number of players and the number of rows per column
- If you have many players, increase
rowsPerColumn to create taller columns
- To limit the number of players displayed, adjust the
maxPlayers value
?️ Accessing the Image
Example to access the scoreboard image:
- If your Minecraft connection IP is
122.244.17.217:27235
- Then the image URL will be
http://122.244.17.217:8080/scoreboard.png
Image URL format: http://MINECRAFTIP:8080/scoreboard.png
⚠️ Important Notes
- The configured port must be accessible from the outside if you want the image to be visible outside your local network
- Remember to restart your server after any configuration changes
- Verify that your firewall allows connections on the configured port
- If the mod doesn't work correctly, please contact your server host's support
? Compatibility
- Supported Minecraft version: 1.21.1
- Requires the Cobblemon mod
评论 0
登录后参与评分
还没有评论,来抢沙发吧