Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
lilingfengdev committed Dec 14, 2024
1 parent 9b29a1d commit d603dbd
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 41 deletions.
12 changes: 6 additions & 6 deletions docs/ADMINISTRATION/权限.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ sidebar_position: 2

# 权限

> 单物品权限看 `PERMISSION` 属性
\> 单物品权限看 `PERMISSION` 属性

## 玩家权限

| 权限 | 描述 |
| ----------- | ----------- |
| chestcommands.open.<文件>.yml | 菜单打开权限,文件名不能包含空格 |
| 权限 | 描述 |
|-------------------------------| ----------- |
| chestcommands.open.\<文件\>.yml | 菜单打开权限,文件名不能包含空格 |

## 管理员权限

| 权限 | 描述 |
| ----------- | ----------- |
|chestcommands.command.help | /cc help |
|chestcommands.command.open | /cc open <文件> |
|chestcommands.command.open.others | /cc open <文件> [player] Note: 该权限还授予打开所有菜单的权限 |
|chestcommands.command.open | /cc open \<文件\> |
|chestcommands.command.open.others | /cc open \<文件\> [player] Note: 该权限还授予打开所有菜单的权限 |
|chestcommands.command.list | /cc list |
|chestcommands.command.reload | /cc reload |

Expand Down
16 changes: 8 additions & 8 deletions docs/BASICS/占位符.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ sidebar_position: 6

占位符标:

| 占位符 | 描述 |
| ----------- | ----------- |
| {player} | 玩家名 |
| {money} | 玩家的钱 |
| {world} | 玩家所处世界 |
| {online} | 服务器在线人数 |
| {max_players} | 最大在线人数 |
| 占位符 | 描述 |
|--------------|---------|
| \{player\} | 玩家名 |
| \{money\} | 玩家的钱 |
| \{world\} | 玩家所处世界 |
| \{online\} | 服务器在线人数 |
| \{max_players\} | 最大在线人数 |

使用 PlaceHolderAPI 提供的占位符

**Note**:必须要带百分号 如 %player_gamemode%
**Note**:必须要带百分号 如 `%player_gamemode%`
10 changes: 5 additions & 5 deletions docs/BASICS/物品属性.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,15 @@ AMOUNT: 12

```
# (Minecraft 1.16+)
NBT-DATA: '{SkullOwner:{Id:[I;-2118090499,36390780,-1625030656,16135986],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGFlNTJhZThjOThhYzE5ZmQwNzYzN2E0NjlmZmEyNTZhYjBiM2IxMGVjZTYyNDMxODYxODhiYTM4ZGYxNTQifX19"}]}}}'
NBT-DATA: '\{SkullOwner:\{Id:[I;-2118090499,36390780,-1625030656,16135986],Properties:\{textures:[\{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGFlNTJhZThjOThhYzE5ZmQwNzYzN2E0NjlmZmEyNTZhYjBiM2IxMGVjZTYyNDMxODYxODhiYTM4ZGYxNTQifX19"\}]\}\}\}'
# (Minecraft 1.8 - 1.15)
NBT-DATA: '{SkullOwner:{Id:"81c080fd-022b-477c-9f24-f63732",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGFlNTJhZThjOThhYzE5ZmQwNzYzN2E0NjlmZmEyNTZhYjBiM2IxMGVjZTYyNDMxODYxODhiYTM4ZGYxNTQifX19"}]}}}'
NBT-DATA: '\{SkullOwner:\{Id:"81c080fd-022b-477c-9f24-f63732",Properties:\{textures:[\{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGFlNTJhZThjOThhYzE5ZmQwNzYzN2E0NjlmZmEyNTZhYjBiM2IxMGVjZTYyNDMxODYxODhiYTM4ZGYxNTQifX19"\}]\}\}\}'
```

例子(通过NBT而不是ENCHANMENTS来设置附魔):
```
NBT-DATA: '{Enchantments:[{id:"minecraft:sharpness",lvl:3}],HideFlags:62}'
NBT-DATA: '\{Enchantments:[\{id:"minecraft:sharpness",lvl:3\}],HideFlags:62\}'
```

## `ENCHANTMENTS`
Expand Down Expand Up @@ -189,11 +189,11 @@ COLOR: '255, 0, 0'

设置 icon 的头颅皮肤(必须是玩家的头)

可以使用{player}占位符作为值来显示查看菜单的玩家的头。如果要显示自定义纹理,则应使用 `NBT-DATA`
可以使用\{player\}占位符作为值来显示查看菜单的玩家的头。如果要显示自定义纹理,则应使用 `NBT-DATA`

例子 (icon 必须是头颅):
```
SKULL-OWNER: '{player}'
SKULL-OWNER: '\{player\}'
```

## `BANNER-COLOR`
Expand Down
17 changes: 9 additions & 8 deletions docs/BASICS/菜单.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,15 @@ menu-settings:

:::

| Option | 数据类型 | 描述 |
| ----------- | ----------- | ----------- |
| name (Required) | string | 打开菜单显示的名称,作为容器标题。长度不能超过32个字符(包括颜色) |
| row | integer | 菜单行数(1-6) 更高无法显示 |
| commands | list | 设置打开此菜单的命令 |
| auto-refresh | decimal | papi刷新频率 **Note**: {money}占位符 会在cc执行相关交易后自动刷新 |
| open-actions | list | 菜单打开执行的操作,支持在 icons 中使用的所有单击操作 |
| open-with-item | boolean | 使用指定的物品打开菜单
| Option | 数据类型 | 描述 |
|-----------------|---------|-----------------------------------------------|
| name (Required) | string | 打开菜单显示的名称,作为容器标题。长度不能超过32个字符(包括颜色) |
| row | integer | 菜单行数(1-6) 更高无法显示 |
| commands | list | 设置打开此菜单的命令 |
| auto-refresh | decimal | papi刷新频率 **Note**: \{money\}占位符 会在cc执行相关交易后自动刷新 |
| open-actions | list | 菜单打开执行的操作,支持在 icons 中使用的所有单击操作 |
| open-with-item | boolean | 使用指定的物品打开菜单 |

- material
- left-click
- right-click
Expand Down
10 changes: 2 additions & 8 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
import { themes as prismThemes } from "prism-react-renderer";

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -34,7 +33,7 @@ const config = {
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'zh-Hans',
locales: ['zh-Hans', 'en'],
locales: ['zh-Hans'],
},

presets: [
Expand Down Expand Up @@ -146,11 +145,6 @@ const config = {
respectPrefersColorScheme: true,
},
}),

themes: [
'@docusaurus/theme-mermaid'

],
};

module.exports = config;
2 changes: 1 addition & 1 deletion i18n/zh-Hans/plugin-ideal-image.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"theme.IdealImageMessage.404error": "未找到图片",
"theme.IdealImageMessage.error": "出现错误点击重试",
"theme.IdealImageMessage.error": "出现错误,点击重试",
"theme.IdealImageMessage.load": "点击加载图片{sizeMessage}",
"theme.IdealImageMessage.loading": "加载中……",
"theme.IdealImageMessage.offline": "你的浏览器处于离线状态。图片未加载"
Expand Down
10 changes: 5 additions & 5 deletions i18n/zh-Hans/theme-common.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"theme.ErrorPageContent.title": "页面已崩溃。",
"theme.ErrorPageContent.tryAgain": "重试",
"theme.NavBar.navAriaLabel": "主导航",
"theme.NotFound.p1": "我们找不到您要找的页面",
"theme.NotFound.p2": "请联系原始链接来源网站的所有者并告知他们链接已损坏。",
"theme.NotFound.p1": "我们找不到你要找的页面",
"theme.NotFound.p2": "请联系原始链接来源网站的所有者,并告知他们链接已损坏。",
"theme.NotFound.title": "找不到页面",
"theme.TOCCollapsible.toggleButtonLabel": "本页总览",
"theme.admonition.caution": "警告",
Expand All @@ -32,7 +32,7 @@
"theme.blog.post.readingTime.plurals": "阅读需 {readingTime} 分钟",
"theme.blog.sidebar.navAriaLabel": "最近博文导航",
"theme.blog.tagTitle": "{nPosts} 含有标签「{tagName}」",
"theme.colorToggle.ariaLabel": "切换浅色/暗黑模式当前为{mode}",
"theme.colorToggle.ariaLabel": "切换浅色/暗黑模式(当前为{mode})",
"theme.colorToggle.ariaLabel.mode.dark": "暗黑模式",
"theme.colorToggle.ariaLabel.mode.light": "浅色模式",
"theme.common.editThisPage": "编辑此页",
Expand All @@ -56,7 +56,7 @@
"theme.docs.versionBadge.label": "版本:{versionLabel}",
"theme.docs.versions.latestVersionLinkLabel": "最新版本",
"theme.docs.versions.latestVersionSuggestionLabel": "最新的文档请参阅 {latestVersionLink} ({versionLabel})。",
"theme.docs.versions.unmaintainedVersionLabel": "此为 {siteTitle} {versionLabel} 版的文档现已不再积极维护。",
"theme.docs.versions.unmaintainedVersionLabel": "此为 {siteTitle} {versionLabel} 版的文档,现已不再积极维护。",
"theme.docs.versions.unreleasedVersionLabel": "此为 {siteTitle} {versionLabel} 版尚未发行的文档。",
"theme.lastUpdated.atDate": "于 {date} ",
"theme.lastUpdated.byUser": "由 {user} ",
Expand All @@ -67,6 +67,6 @@
"theme.tags.tagsListLabel": "标签:",
"theme.tags.tagsPageLink": "查看所有标签",
"theme.tags.tagsPageTitle": "标签",
"theme.unlistedContent.message": "此页面未列出。搜索引擎不会对其索引只有拥有直接链接的用户才能访问。",
"theme.unlistedContent.message": "此页面未列出。搜索引擎不会对其索引,只有拥有直接链接的用户才能访问。",
"theme.unlistedContent.title": "未列出页"
}

0 comments on commit d603dbd

Please sign in to comment.