? 简介
钓鱼、挂机、乘坐矿车……游戏中有许多需要“等待”的场景,想必大家都有过这样的体验。
如果玩家能利用这段时间进行一些深度思考,单调的等待也能转化为成就感。
安装本插件后,玩家可以利用这段“等待”时间玩 24 点游戏!
插件功能
- 输入命令
/24game 或 /24 即可开始一局 24 点游戏。
- 直接在聊天栏中输入答案,系统将提供反馈。
所有操作(包括开始和回答)都在聊天中进行。这意味着你无需停下手中的事情来思考答案,除非时间耗尽。
+ 问:如果我在游戏过程中需要回复他人的消息怎么办?
+ 答:使用 /tell 命令进行私聊,或使用 /me 告知他人你正在玩 24。
或者……你可以先完成你的 24 点游戏,然后再进行回复。
⌨️ 指令
-
/24game 或 /24
权限:24game.play(默认:true)| 仅限玩家
功能:开始一场 24 点游戏。
-
/24game stop
权限:24game.stop(默认:true)| 仅限玩家
功能:中止一场 24 点游戏。
-
/24game stop <玩家名称|@a|@p|@r|...>
权限:24game.stopOthers(默认:op)
功能:中止特定玩家或多个玩家的 24 点游戏。
-
/24game test <a> <b> <c> <d>
权限:24game.test(默认值:true)
功能:测试数字组合 [a b c d] 是否存在解法。
当命令执行者正在玩 24 点游戏时,此命令不可用。
? 配置
config.yml:
# 插件语言,内置选项为 `en`(英语)和 `zh`(简体中文)
lang: `zh`
# 超时时间(秒)。如果玩家在此时间内未作答,游戏将被视为超时并中止。
response-timeout: `180`
# 缓存计算结果的最大数量(每个结果占用 `3` 字节)
# 有效范围:`1..65535`,超出此范围的数值将禁用缓存
# 建议启用缓存。缓存文件将保存至 cache.bin
cache-size: `1024`
# “无解”的字符串表示
# 由于插件执行不区分大小写的字符串比较,处理字母时请使用小写。
# 大写转小写使用 Locale.US 区域设置进行转换。
no-resolution-text:
- `n/a`
- `none`
- `无解`
- `無解`
- `no resolution`
- `no solution`
? 下载
请访问下载页面获取最新版本。
法律声明
本插件使用的所有代码均为原创,未借鉴或抄袭任何内容。
该插件基于 Kotlin 编写,并使用 ProGuard 进行混淆处理。JAR 包中包含了重定向、混淆和打包后的 Kotlin 标准库,遵循开源 Apache 2 许可证。JAR 包中包含一个文件,说明了对其所做的修改。
转载此插件需获得我的同意,建议您通过电子邮件 teddyxlandlee@hotmail.com 与我联系以获得更好的可见性。
如果您需要该插件的混淆表(用于 ReTrace 分析堆栈跟踪)或源代码,请通过电子邮件联系我。
© 2023 teddyxlandlee. All rights reserved.
? Introduction
Fishing, AFK-ing, riding minecarts... There are many in-game scenarios that require "waiting," and you've probably experienced this.
If players could use this time for some critical thinking, the monotony could turn into a sense of achievement.
With this plugin installed, players can spend their "waiting" time playing a game of 24!
Plugin Features
-
Enter the command /24game or /24 to start a game of 24 points.
-
Enter your answers directly in the chat, and the game will provide feedback.
All actions, including starting and answering, take place in the chat. This means you don't have to stop what you're doing to think about the answers unless you run out of time.
- Q: What if I need to reply to someone's message in the middle of the game?
- A: Use the
/tell command for private messages, or use /me to let others know you're playing 24.
Or... you can finish your 24-point game first and then respond.
⌨️ Commands
/24game or /24
Permission: 24game.play (default: true) | Players only
Function: Start a game of 24.
/24game stop
Permission: 24game.stop (default: true) | Players only
Function: Abort a game of 24.
/24game stop <player name|@a|@p|@r|...>
Permission: 24game.stopOthers (default: op)
Function: Abort a game of 24 for a specific player or players.
/24game test <a> <b> <c> <d>
Permission: 24game.test (default: true)
Function: Test if the number combination [a b c d] has a solution.
This command is not available when the command executor is playing a game of 24.
? Configuration
config.yml:
# Plugin language, built-in options are `en` (English) and `zh` (Simplified Chinese)
lang: `zh`
# Timeout in seconds. If a player doesn't answer within this time, the game is considered timed out and aborted.
response-timeout: `180`
# Maximum number of cached calculation results (each result takes up `3` bytes)
# Valid range: `1..65535`, any number outside this range disables the cache
# Enabling the cache is recommended. Cached files will be saved to cache.bin
cache-size: `1024`
# String representation of "no solution"
# Since the plugin performs case-insensitive string comparison, please use lowercase when dealing with letters.
# Uppercase to lowercase conversion is done using the Locale.US locale setting.
no-resolution-text:
- `n/a`
- `none`
- `无解`
- `無解`
- `no resolution`
- `no solution`
? Download
Please visit the download page to get the latest version.
Legal Notice
All the code used in this plugin is original and free from any borrowing or plagiarism.
The plugin is written in Kotlin and is obfuscated using ProGuard. The JAR package contains the redirected, obfuscated, and packaged Kotlin standard library, and it is governed by the open-source Apache 2 license. The JAR package includes a file that explains the modifications made to the files.
Reprinting this plugin requires my consent, and I suggest you email me at teddyxlandlee@hotmail.com for better visibility.
If you need the plugin's obfuscation table (for ReTrace analysis of stack traces) or the source code, please contact me via email.
© 2023 teddyxlandlee. All rights reserved.
评论 0
登录后参与评分
还没有评论,来抢沙发吧