SweetInventory
一款 Minecraft 菜单插件
默认配置为中文。如需英文或其他语言,请查看 localization 仓库。
很抱歉目前 Wiki 仅支持中文。未来我们可能会将其翻译成英文。
简介
基于 PluginBase 菜单模块构建的菜单插件。它采用直观的布局格式,类似于以下示例:
inventory:
- 'ooooooooo'
- 'upppppppd'
- 'ooooooooo'
# "o" 表示边框图标
# "u" 表示“上”,即上一页按钮
# "d" 表示“下”,即下一页按钮
# "p" 表示页面内容
图标可以设置“显示条件”、“点击条件”、“点击动作”等。它支持多种点击类型,包括左键点击、右键点击、Shift + 左键点击、Shift + 右键点击、Q 键以及 Ctrl + Q。
更多详情请参阅 MCIO Plugins 上的文档。
功能
- 采用更直观的布局设计
- 支持分页,允许单个菜单显示多页内容
- 支持为菜单注册自定义命令,重载后立即生效
- 支持检测文件保存操作,并在保存时自动重载菜单
- 丰富的条件和显示优先级机制,满足简单的使用场景
- 支持在条件中使用表达式,例如
%vault_eco_balance% >= 100
命令
根命令为 /sweetinventory,别名有 /sinv、/si 或 /menu
用 <> 包裹的参数为必填项,用 [] 包裹的参数为可选项。
| 命令 |
描述 |
权限 |
/menu open <menu> |
打开指定菜单。需要打开该菜单的权限 |
sweet.inventory.open |
/menu open <menu> - [..menu arguments] |
打开指定菜单。需要打开该菜单的权限 |
sweet.inventory.open |
/menu open <menu> <player> [..menu arguments] |
为玩家打开指定菜单。目标玩家无需拥有打开该菜单的权限 |
sweet.inventory.open.other |
/menu list |
查看菜单列表 |
sweet.inventory.list |
/menu reload |
重载插件配置文件 |
OP/Console |
打开菜单需要权限 sweet.inventory.open.menu.<menu>
SweetInventory
A Minecraft Menu Plugin
Default configurations are in Chinese. Check localization repository for English or other language.
And I am sorry about that the wiki is only Chinese available right now. In the future, we may translate it to English.
Introduction
A menu plugin built based on the PluginBase menu module. It uses an intuitive layout format similar to the example below:
inventory:
- 'ooooooooo'
- 'upppppppd'
- 'ooooooooo'
# "o" means frame icon
# "u" means "up", aka previous-page button
# "d" means "down", aka next-page button
# "p" means page content
Icons can have "display conditions", "click conditions", "click actions", and more. It supports various click types such as Left Click, Right Click, Shift + Left Click, Shift + Right Click, Q, and Ctrl + Q.
For more details, see the documentation on MCIO Plugins.
Features
- Uses a more intuitive layout design
- Supports pagination, allowing a single menu to display multiple pages of content
- Supports registering custom commands for menus, effective immediately after reloading
- Supports detecting file save operations and automatically reloading menus upon saving
- Rich condition and display priority mechanisms to satisfy simple use cases
- Supports expressions in conditions such as
%vault_eco_balance% >= 100
Commands
The root command is /sweetinventory, with aliases /sinv, /si, or /menu
Parameters wrapped in <> are required, and parameters wrapped in [] are optional.
| Command |
Description |
Permission |
/menu open <menu> |
Opens the specified menu. Requires permission to open the menu |
sweet.inventory.open |
/menu open <menu> - [..menu arguments] |
Opens the specified menu. Requires permission to open the menu |
sweet.inventory.open |
/menu open <menu> <player> [..menu arguments] |
Opens the specified menu for a player. The target player does not need permission to open the menu |
sweet.inventory.open.other |
/menu list |
View the list of menus |
sweet.inventory.list |
/menu reload |
Reload the plugin configuration files |
OP/Console |
Opening a menu requires the permission sweet.inventory.open.menu.<menu>
评论 0
登录后参与评分
还没有评论,来抢沙发吧