OreAcle
OreAcle 是一款轻量且可配置的聊天游戏插件,适用于兼容 Spigot 的 Minecraft 服务器。
它会在服务器聊天中自动启动小型聊天游戏。玩家可以直接在聊天中输入答案,也可以与可点击和悬停显示的聊天组件进行交互,具体取决于游戏类型。每轮比赛最多可有三位获胜者,并根据名次分别发放奖励。
功能特性
- 自动定时聊天游戏
- 手动开始、停止和重载命令
- 每轮最多 3 位获胜者
- 按名次发放奖励
- 积分、胜场、最快回答及统计数据追踪
- 支持积分、胜场和最快回答排行榜
- 可配置的消息、标题、前缀、词汇表、问答题库、奖励和计时设置
- ClickHere 游戏:包含隐藏的随机 8 位字母数字组合的单轮令牌
- Hover 游戏:使用传统 Spigot 聊天组件
- 轻量级
<center> 支持,用于居中显示配置的聊天行
- 最终轮次总结
游戏类型
OreAcle 目前包含以下游戏类型:
- reaction - 输入屏幕上显示的单词
- unscramble - 还原打乱的单词
- unreverse - 根据反转后的显示输入原始单词
- reverse - 反转屏幕上显示的单词
- fillout - 补全缺失字母以完成单词
- random - 输入生成的随机字符串
- math - 解答数学方程
- variable - 使用可配置符号求解 x
- trivia - 回答常识问答
- clickhere - 点击聊天组件
- hover - 悬停聊天组件并输入显示的答案
兼容性
- Minecraft: 1.12.2
- 服务端软件: 兼容 Spigot / Paper
- Java: Java 8
- 客户端安装要求: 否
OreAcle 有意避免使用现代 Minecraft API 和仅 Paper 支持的 API,因此非常适合传统的兼容 Spigot 的服务器。
命令
主命令:
/chatgames
别名:
/cg
| 命令 |
描述 |
/chatgames help |
显示命令帮助信息 |
/chatgames start <type> |
启动特定类型的游戏 |
/chatgames stop |
停止当前活跃的游戏 |
/chatgames reload |
重载配置文件和数据文件。如果当前有游戏正在进行,将静默结束该游戏。 |
/chatgames reset <player> |
重置玩家的 OreAcle 统计数据 |
/chatgames top |
显示积分排行榜 |
/chatgames wins |
显示胜场排行榜 |
/chatgames fastest |
显示最快回答排行榜 |
/chatgames stats [player] |
显示你自己或其他玩家的统计数据 |
权限
| 权限 |
默认值 |
描述 |
chatgames.admin |
OP |
开始、停止、重载和重置 |
chatgames.top |
Everyone |
查看积分排行榜 |
chatgames.wins |
Everyone |
查看胜场排行榜 |
chatgames.fastest |
Everyone |
查看最快回答排行榜 |
chatgames.stats |
Everyone |
查看玩家统计数据 |
chatgames.play |
Everyone |
当需要游玩权限时参与游戏 |
配置
OreAcle 会生成多个配置文件:
| 文件 |
用途 |
config.yml |
主要设置、计时、启用的游戏及游戏选项 |
messages.yml |
聊天格式和用户可见消息 |
words.yml |
基于单词游戏的词库 |
trivia.yml |
问答题目及接受的答案 |
rewards.yml |
名次奖励动作 |
data.yml |
存储的玩家统计数据和至少有一位获胜者的轮数计数 |
默认情况下,OreAcle 每 30 分钟自动启动一次游戏,每轮持续时间为 20 秒。
auto-start-enabled: true
auto-start-interval-seconds: 1800
round-duration-seconds: 20
奖励
奖励在 rewards.yml 中按名次配置。
支持的奖励操作包括:
[console] eco give %player% 150
[player] say hello
[message] &fYou received &e150 coins&f.
[broadcast] &e%player% won a ChatGame!
常用占位符:
%player%
%uuid%
%place%
%time%
%time_ms%
%answer%
%points%
%prefix%
%title%
%word%
%question%
%equation%
%puzzle%
消息格式化
OreAcle 使用经典的 Minecraft 颜色代码 &。
默认标题为:
chatgames-title: "&1&lO&9&lre&b&lAc&3&lle"
默认前缀为:
prefix: "&8[&1&lO&9&lre&b&lAc&3&lle&8]"
标题和前缀均可自定义配置。
配置的游戏消息可选择性地使用 <center> 来实现轻量级的聊天文本居中。
安装
- 下载插件 jar 文件。
- 将其放入服务器的
plugins/ 文件夹中。
- 启动或重启服务器。
- 编辑
plugins/OreAcle/ 中生成的文件。
- 修改配置后运行
/chatgames reload。
注意事项
- ClickHere 令牌是随机的 8 位字母数字内部单轮令牌。
- 当当前轮次更改或结束时,旧的 ClickHere 按钮将停止工作。
- ClickHere 不会将其内部令牌作为答案显示。
- 重复获奖者默认处于静音状态。
- 单独获奖广播默认禁用。
- 最终结果将在主轮次摘要中显示。
- 添加新选项时,现有的服务器配置不会自动被覆盖。
OreAcle
OreAcle is a lightweight and configurable chat-games plugin for Spigot-compatible Minecraft servers.
It automatically starts small chat games in the server chat. Players can answer directly in chat or interact with clickable and hoverable chat components, depending on the game type. Each round can have up to three winners with separate rewards for each placement.
Features
- Automatic timed chat games
- Manual start, stop, and reload commands
- Up to 3 winners per round
- Per-placement rewards
- Points, wins, fastest answer, and stats tracking
- Leaderboards for points, wins, and fastest answers
- Configurable messages, title, prefix, words, trivia questions, rewards, and timings
- ClickHere game with hidden random 8-character alphanumeric one-round tokens
- Hover game using legacy Spigot chat components
- Lightweight
<center> support for configured chat lines
- Final round summaries
Game Types
OreAcle currently includes the following game types:
- reaction - type the displayed word
- unscramble - unscramble the displayed word
- unreverse - type the original word from a reversed display
- reverse - reverse the displayed word
- fillout - complete the word with missing letters
- random - type a generated random string
- math - solve a math equation
- variable - solve for x using configurable symbols
- trivia - answer a trivia question
- clickhere - click the chat component
- hover - hover the chat component and type the shown answer
Compatibility
- Minecraft: 1.12.2
- Server software: Spigot / Paper compatible
- Java: Java 8
- Client-side install required: No
OreAcle intentionally avoids modern Minecraft APIs and Paper-only APIs, making it suitable for legacy Spigot-compatible servers.
Commands
Main command:
/chatgames
Alias:
/cg
| Command |
Description |
/chatgames help |
Shows command help |
/chatgames start <type> |
Starts a specific game |
/chatgames stop |
Stops the active game |
/chatgames reload |
Reloads config and data files. If a game is currently active, it is silently ended. |
/chatgames reset <player> |
Resets a player's OreAcle stats |
/chatgames top |
Shows the points leaderboard |
/chatgames wins |
Shows the wins leaderboard |
/chatgames fastest |
Shows the fastest answers leaderboard |
/chatgames stats [player] |
Shows stats for yourself or another player |
Permissions
| Permission |
Default |
Description |
chatgames.admin |
OP |
Start, stop, reload, and reset |
chatgames.top |
Everyone |
View the points leaderboard |
chatgames.wins |
Everyone |
View the wins leaderboard |
chatgames.fastest |
Everyone |
View the fastest answers leaderboard |
chatgames.stats |
Everyone |
View player stats |
chatgames.play |
Everyone |
Participate when play permission is required |
Configuration
OreAcle generates multiple configuration files:
| File |
Purpose |
config.yml |
Main settings, timings, enabled games, and game options |
messages.yml |
Chat formatting and user-facing messages |
words.yml |
Word pools for word-based games |
trivia.yml |
Trivia questions and accepted answers |
rewards.yml |
Placement reward actions |
data.yml |
Stored player stats and count of rounds with at least one winner |
By default, OreAcle starts one automatic game every 30 minutes and each round lasts 20 seconds.
auto-start-enabled: true
auto-start-interval-seconds: 1800
round-duration-seconds: 20
Rewards
Rewards are configured per placement in rewards.yml.
Supported reward actions include:
[console] eco give %player% 150
[player] say hello
[message] &fYou received &e150 coins&f.
[broadcast] &e%player% won a ChatGame!
Common placeholders:
%player%
%uuid%
%place%
%time%
%time_ms%
%answer%
%points%
%prefix%
%title%
%word%
%question%
%equation%
%puzzle%
Message Formatting
OreAcle uses classic Minecraft color codes with &.
The default title is:
chatgames-title: "&1&lO&9&lre&b&lAc&3&lle"
The normal prefix is:
prefix: "&8[&1&lO&9&lre&b&lAc&3&lle&8]"
Both the title and prefix are configurable.
Configured game messages can optionally use <center> for lightweight chat centering.
Installation
- Download the plugin jar.
- Place it into your server's
plugins/ folder.
- Start or restart the server.
- Edit the generated files in
plugins/OreAcle/.
- Run
/chatgames reload after changing the configuration.
Notes
- ClickHere tokens are random 8-character alphanumeric internal one-round tokens.
- Old ClickHere buttons stop working once the active round changes or ends.
- ClickHere does not reveal its internal token as an answer.
- Duplicate winners are silent by default.
- Individual winner broadcasts are disabled by default.
- Final results are shown in the main round summary.
- Existing server configs are not overwritten automatically when new options are added.
评论 0
登录后参与评分
还没有评论,来抢沙发吧