AlmostKoi's Chat Games
AlmostKoi's Chat Games 是一款简单的 Minecraft 插件,旨在通过运行快速、具有竞争性的反应游戏来使服务器聊天更加活跃。每隔几分钟,聊天中就会开始一局游戏,第一个输入正确答案的玩家将获得奖励。
该插件支持 Folia 等多线程服务器环境,异步处理聊天输入以避免卡顿,并允许觉得烦扰的玩家将其关闭。
游戏模式
包含九种不同的游戏模式:
- Unscramble(拼写重组):从词库中随机抽取一个单词并将其打乱,玩家需要猜出原词。
- Solve(解题):生成一个简单的数学方程,玩家必须计算出答案。
- Type(打字):一款速度打字游戏,玩家需要输入指定的单词。
- Type Random(随机输入):使用随机字符串进行的区分大小写的验证码测试。
- Trivia(知识问答):从 trivia 文件中加载的问题。您可以配置多个正确答案。
- Fill in the Blanks(填空):显示带有缺失字母的单词,玩家需要补全它。
- Word Unshuffle(词语排序):将短语中的单词重新排列回正确的顺序。
- Reverse Word Unshuffle(逆向词语排序):短语的拼写和单词顺序被反转,玩家需要还原。
- Unreverse(正向还原):单词以反向形式打印,玩家需要按正向输入。
命令与权限
通用命令
/acg toggle - 开启或关闭你自己对聊天游戏的可见性。(权限:chatgames.toggle,默认为 true)
管理员命令
所有管理员命令都需要 chatgames.admin 权限(默认为 OP)。
/acg forcestart [gametype] - 启动特定类型的游戏。如果您未指定游戏类型,则启动随机类型。
/acg reload - 重新加载所有配置文件、语言选项和词库。
/acg info - 显示当前统计数据,包括词库大小。
其他权限:
chatgames.see - 如果在配置中将 use-game-permissions 设置为 true,则需要此权限才能查看和参与游戏(默认为 true)。
占位符 (PlaceholderAPI)
您可以使用这些占位符在计分板、标签页列表或聊天格式中显示统计数据:
%almostkoischatgames_wins% - 玩家的总聊天游戏获胜次数。
%almostkoischatgames_server_total_wins% - 整个服务器上赢得的游戏总数。
%almostkoischatgames_is_toggled% - 显示玩家是否开启了游戏可见性(true/false)。
%almostkoischatgames_lb_topname_N% - 排行榜上第 N 名玩家的名称。
%almostkoischatgames_lb_topwins_N% - 排行榜上第 N 名玩家的获胜次数。
配置
您可以在配置文件中自定义几乎所有内容:
- config.yml:更改游戏间隔、持续时间、区分大小写设置、激活的游戏模式以及音效。
- rewards.yml:定义玩家获胜时的奖励机制。您可以发送私聊消息、执行控制台或玩家命令、奖励 Vault 经济货币,或者仅向启用游戏的玩家广播消息。
- lang.yml:更改显示给玩家的所有消息。支持十六进制/RGB 颜色代码。
- game-library.yml 和 trivia-library.yml:添加您自己的单词、短语和知识问答问题的文件。
AlmostKoi's Chat Games
AlmostKoi's Chat Games is a simple Minecraft plugin designed to make server chat more active by running quick, competitive reaction games. Every few minutes, a game will start in chat, and the first player to type the correct answer wins a reward.
The plugin supports multi-threaded server environments like Folia, handles chat inputs asynchronously to avoid lag, and lets players who find it annoying toggle it off.
Game Modes
There are nine different game modes included:
- Unscramble: A word from the library is scrambled, and players have to figure out what it is.
- Solve: A simple math equation is generated, and players must solve it.
- Type: A speed typing game where players must type a specific word.
- Type Random: A case-sensitive captcha test using a random string of characters.
- Trivia: Questions loaded from a trivia file. You can configure multiple correct answers.
- Fill in the Blanks: A word is shown with missing letters, and players must complete it.
- Word Unshuffle: Shuffled words of a phrase must be put back in the right order.
- Reverse Word Unshuffle: The spelling and word order of a phrase are reversed.
- Unreverse: A word is printed backwards, and players have to type it forward.
Commands and Permissions
General Commands
/acg toggle - Turn chat games visibility on or off for yourself. (Permission: chatgames.toggle, defaults to true)
Admin Commands
All admin commands require the chatgames.admin permission (defaults to OP).
/acg forcestart [gametype] - Starts a specific game. If you do not specify a game type, a random one will start.
/acg reload - Reloads all configuration files, language options, and libraries.
/acg info - Shows current statistics, including library sizes.
Other permissions:
chatgames.see - Required to see and participate in games if use-game-permissions is set to true in the config (defaults to true).
Placeholders (PlaceholderAPI)
You can use these placeholders to display stats in scoreboards, tablists, or chat formats:
%almostkoischatgames_wins% - The player's total chat game wins.
%almostkoischatgames_server_total_wins% - Total number of games won across the entire server.
%almostkoischatgames_is_toggled% - Shows if the player has games visible (true/false).
%almostkoischatgames_lb_topname_N% - The name of the player at rank N on the leaderboard.
%almostkoischatgames_lb_topwins_N% - The number of wins for the player at rank N on the leaderboard.
Configuration
You can customize almost everything in the config files:
- config.yml: Change game intervals, lifetime, case-sensitivity, active game modes, and sound effects.
- rewards.yml: Define what happens when a player wins. You can send private messages, run console or player commands, reward vault economy money, or broadcast a message only to players who have games enabled.
- lang.yml: Change any message shown to players. Hex/RGB color codes are supported.
- game-library.yml and trivia-library.yml: The files where you add your own words, phrases, and trivia questions.
评论 0
登录后参与评分
还没有评论,来抢沙发吧