PolarBooks
本模组旨在允许服务器创建书籍,通过简单的书籍 GUI 向玩家传达信息。
它还完全支持 MiniMessage,让你可以随心所欲地编写精美的消息。
每个配置文件都由一个名为 pages 的列表组成,其中每个列表元素是另一个列表。你可以将页面内容写入此列表中,无论是单行还是多行。
{
"pages": [
[
"<green>This book supports minimessage!",
"<click:run_command:/homelist>TEST</click>"
]
]
}
命令
当前可用的命令有:
/polarbooks reload - 重新加载书籍
权限:polarbooks.reload
/polarbooks bookscanner - 扫描已书写的书籍
权限:polarbooks.bookscanner
/polarbooks open <book> - 打开指定书籍
权限:polarbooks.open
/<book> - 打开自上次重启以来添加的书籍
?️ 添加新命令
如果你希望使用本模组添加新命令,你需要创建一个与默认配置文件格式相同的新文件。在重启服务器后,它们将被加载。
可选地,你可以使用 /polarbooks open <book> 命令查看自上次重启以来添加的书籍。
❓ 需要帮助?
你可以通过 Discord 私聊我 @polarplar,或者加入我的开发 Discord 并在其中提问!此外,欢迎查看我的其他项目!
PolarBooks
This mod is aimed at allowing servers to create books that allow you to inform players through a simple book GUI.
It also has full MiniMessage support, so you can write pretty messages to your hearts content.
Every config is composed of a list named pages, where each list element is another list, you can write page contents into this list, either as one line or multiple.
{
"pages": [
[
"<green>This book supports minimessage!",
"<click:run_command:/homelist>TEST</click>"
]
]
}
Commands
The current commands are:
/polarbooks reload - Reloads books
Permission: polarbooks.reload
/polarbooks bookscanner - Scans a written book
Permission: polarbooks.bookscanner
/polarbooks open <book> - Opens a Specified Book
Permission: polarbooks.open
/<book> - Open a book which has been added since the previous restart
?️ Adding new commands
If you wish to add a new command using this mod, you need to create a new file with the same format as the default config. Upon restarting your server, they will be loaded in.
Optionally, you can use the /polarbooks open <book> command to view books that have been added since last restart
❓ Need Help?
You can either DM me on Discord @polarplar or join my development Discord and ask your questions there! Also, check out my other projects!
评论 0
登录后参与评分
还没有评论,来抢沙发吧