Skip to content

Commit

Permalink
Merge branch 'main' of github.com:8aka-Team/Chest-Commands-Wiki-CN
Browse files Browse the repository at this point in the history
  • Loading branch information
postyizhan committed Dec 14, 2024
2 parents 3b40efc + f5cfcff commit d815494
Show file tree
Hide file tree
Showing 32 changed files with 102 additions and 13,041 deletions.
26 changes: 0 additions & 26 deletions docs/BASICS/占位符.md

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/OTHER/FAQ.md → docs/其他/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sidebar_position: 1
https://yaml-online-parser.appspot.com 可以帮助你解决这类问题

## 如何配置多个菜单?
`/plugins/CestCommands/menu/` 文件夹中创建一个新文件,[就像这样](../BASICS/菜单.md)
`/plugins/CestCommands/menu/` 文件夹中创建一个新文件,[就像这样](../基础/菜单.md)

## /cc (Startup error)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
26 changes: 26 additions & 0 deletions docs/基础/占位符.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
sidebar_position: 6
---

# 占位符

占位符可以用于以下图标属性:

- `ACTIONS`
- `NAME`
- `LORE`
- `SKULL-OWNER`

占位符标:

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

使用 PlaceHolderAPI 提供的占位符

**Note**:必须要带百分号 如 `%player_gamemode%`
File renamed without changes.
6 changes: 3 additions & 3 deletions docs/BASICS/点击动作.md → docs/基础/点击动作.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sidebar_position: 5

:::warning

ACTION 可以使用颜色、[symbols](/docs/symbols.md)[占位符](/docs/BASICS/占位符.md)
ACTION 可以使用颜色、[symbols](/docs/symbols.md)[占位符](/docs/基础/占位符.md)

:::

Expand Down Expand Up @@ -56,7 +56,7 @@ ACTIONS:

## `打开其他菜单`

打开其他菜单 需要特定[权限](/docs/ADMINISTRATION/权限.md)
打开其他菜单 需要特定[权限](/docs/服主/权限.md)

格式: `open: <file>`

Expand Down Expand Up @@ -118,7 +118,7 @@ ACTIONS:

## `给钱`

给钱 得设置 [经济](/docs/BASICS/安装.md)
给钱 得设置 [经济](/docs/基础/安装.md)

格式: `give-money: <amount>`

Expand Down
18 changes: 9 additions & 9 deletions docs/BASICS/物品属性.md → docs/基础/物品属性.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ POSITION-Y: 1

玩家点击后执行动作的列表,像例子这样没有前缀就是直接执行命令

更多的动作见 [点击动作](/docs/BASICS/点击动作.md)
更多的动作见 [点击动作](/docs/基础/点击动作.md)

例子:
```
Expand All @@ -80,7 +80,7 @@ ACTIONS:

数据类型: string

物品名称 可以使用颜色、[symbols](/docs/symbols.md)[占位符](/docs/BASICS/占位符.md)
物品名称 可以使用颜色、[symbols](/docs/symbols.md)[占位符](/docs/基础/占位符.md)

例子:
```
Expand All @@ -91,7 +91,7 @@ NAME: '&6This is a colored name!'

数据类型: list

物品lore 可以使用颜色、[symbols](/docs/symbols.md)[占位符](/docs/BASICS/占位符.md)
物品lore 可以使用颜色、[symbols](/docs/symbols.md)[占位符](/docs/基础/占位符.md)

例子:
```
Expand Down 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 Expand Up @@ -238,7 +238,7 @@ BANNER-PATTERNS:

执行此icon的点击动作需要的money

需要配置 [经济](/docs/BASICS/安装.md)
需要配置 [经济](/docs/基础/安装.md)

例子:
```
Expand Down
19 changes: 10 additions & 9 deletions docs/BASICS/菜单.md → docs/基础/菜单.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 All @@ -87,4 +88,4 @@ spawn-teleport:

:::

icons 可以配置 [物品属性](/docs/BASICS/物品属性.md)
icons 可以配置 [物品属性](/docs/基础/物品属性.md)
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions docs/ADMINISTRATION/权限.md → docs/服主/权限.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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions docs/ADVANCED/商店.md → docs/高级/商店.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ sidebar_position: 3

# 商店

通过结合一些[物品属性](/docs/BASICS/物品属性.md)[动作](/docs/BASICS/点击动作.md),你可以创建简单的商店,出售和购买玩家的物品。
通过结合一些[物品属性](/docs/基础/物品属性.md)[动作](/docs/基础/点击动作.md),你可以创建简单的商店,出售和购买玩家的物品。

需要有效的 [经济](/docs/BASICS/安装.md) 设置
需要有效的 [经济](/docs/基础/安装.md) 设置

## 出售
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_position: 4

将一些静态文本做成自定义占位符

他们可以用在 [物品属性](/docs/BASICS/物品属性.md):
他们可以用在 [物品属性](/docs/基础/物品属性.md):

- `ACTIONS`
- `NAME`
Expand Down
File renamed without changes.
File renamed without changes.
37 changes: 17 additions & 20 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
// @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 = {
future: {
experimental_faster: true,
},
title: 'Chest-Commands-Wiki-CN',
tagline: 'Chest-Commands-Wiki 汉化',
favicon: 'img/favicon.ico',
Expand All @@ -14,7 +16,7 @@ const config = {
url: 'https://postyizhan.github.io',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/Chest-Commands-Wiki-CN/',
baseUrl: '/',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
Expand All @@ -31,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 @@ -59,6 +61,13 @@ const config = {
({
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
zoom: {
selector: '.markdown :not(em) > img',
background: {
light: 'rgb(255, 255, 255)',
dark: 'rgb(50, 50, 50)',
},
},
navbar: {
title: 'Chest-Commands-Wiki-CN',
logo: {
Expand Down Expand Up @@ -126,28 +135,16 @@ const config = {
},
// 深浅主题
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
theme: prismThemes.vsLight,
darkTheme: prismThemes.vsDark,
},
// 颜色随系统切换
colorMode: {
defaultMode: 'light',
disableSwitch: false,
respectPrefersColorScheme: true,
},
}),

themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
language: ["en", "zh"],
highlightSearchTermsOnTargetPage: true,
explicitSearchResultPath: true,
indexBlog: false,
docsRouteBasePath: "/"
},
],
],
};

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": "未列出页"
}
Loading

0 comments on commit d815494

Please sign in to comment.