mirror of
https://github.com/CarmJos/UserPrefix.git
synced 2024-09-19 20:15:47 +00:00
添加折叠
This commit is contained in:
parent
46fb39d7bb
commit
b8d6862b17
16
README-en.md
16
README-en.md
@ -109,6 +109,10 @@ type `/papi info UserPrefix` to see all the placeholders.
|
|||||||
Notice: The default configuration is based on Chinese. You can find
|
Notice: The default configuration is based on Chinese. You can find
|
||||||
the [English Version here](https://github.com/CarmJos/UserPrefix/blob/master/src/main/resources/en_US/config.yml).
|
the [English Version here](https://github.com/CarmJos/UserPrefix/blob/master/src/main/resources/en_US/config.yml).
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Click to see plugin configuration</summary>
|
||||||
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
version: ${project.version} # DO NOT EDIT IT
|
version: ${project.version} # DO NOT EDIT IT
|
||||||
|
|
||||||
@ -195,8 +199,13 @@ defaultPrefix:
|
|||||||
- "§a✔ Selected"
|
- "§a✔ Selected"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
### [Messages Configuration](https://github.com/CarmJos/UserPrefix/blob/master/src/main/resources/en_US/messages.yml) (messages.yml)
|
### [Messages Configuration](https://github.com/CarmJos/UserPrefix/blob/master/src/main/resources/en_US/messages.yml) (messages.yml)
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Click to see messages configuration</summary>
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
selected:
|
selected:
|
||||||
- "&7You have selected the &f%(name) &7as current prefix."
|
- "&7You have selected the &f%(name) &7as current prefix."
|
||||||
@ -220,12 +229,17 @@ list-value:
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
### [Prefixes Configuration](https://github.com/CarmJos/UserPrefix/blob/master/src/main/resources/en_US/example-prefix.yml) (/prefixes/*.yml)
|
### [Prefixes Configuration](https://github.com/CarmJos/UserPrefix/blob/master/src/main/resources/en_US/example-prefix.yml) (/prefixes/*.yml)
|
||||||
|
|
||||||
All prefixes are separate configuration files, stored in the `<Data Folder>/prefixes/` for easy management.
|
All prefixes are separate configuration files, stored in the `<Data Folder>/prefixes/` for easy management.
|
||||||
|
|
||||||
Some symbols in file name may affect reading, please avoid using them.
|
Some symbols in file name may affect reading, please avoid using them.
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Example prefix configuration.</summary>
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# identifier [Necessary]
|
# identifier [Necessary]
|
||||||
# This will be used for data-storage.
|
# This will be used for data-storage.
|
||||||
@ -299,6 +313,8 @@ itemNoPermission:
|
|||||||
- "§e✯ Buy the VIP to use it!"
|
- "§e✯ Buy the VIP to use it!"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
## Support and Donation
|
## Support and Donation
|
||||||
|
|
||||||
This project is support by the [YourCraft(你的世界)](https://www.ycraft.cn) .
|
This project is support by the [YourCraft(你的世界)](https://www.ycraft.cn) .
|
||||||
|
53
README.md
53
README.md
@ -33,19 +33,31 @@ The **English version** of the introduction is [here](https://github.com/CarmJos
|
|||||||
|
|
||||||
- 理论上全版本支持!
|
- 理论上全版本支持!
|
||||||
- 游戏内重载配置文件并实时更新到玩家!
|
- 游戏内重载配置文件并实时更新到玩家!
|
||||||
- 当玩家权限变更时会实时监测前缀,若权限不足则自动更换前缀并提示![✈](https://github.com/CarmJos/UserPrefix/blob/master/src/main/java/cc/carm/plugin/userprefix/listener/processor/UserNodeUpdateProcessor.java)
|
-
|
||||||
|
|
||||||
|
当玩家权限变更时会实时监测前缀,若权限不足则自动更换前缀并提示![✈](https://github.com/CarmJos/UserPrefix/blob/master/src/main/java/cc/carm/plugin/userprefix/listener/processor/UserNodeUpdateProcessor.java)
|
||||||
|
|
||||||
- 可配置的声音、消息!
|
- 可配置的声音、消息!
|
||||||
- 前缀图标可配置“选中”、“有权限”与“无权限”三种状态的物品
|
- 前缀图标可配置“选中”、“有权限”与“无权限”三种状态的物品
|
||||||
- 物品的配置通过ItemStack原生配置,支持MC所有的设定!
|
- 物品的配置通过ItemStack原生配置,支持MC所有的设定!
|
||||||
- 具体的设定请参考其他文档哦~
|
- 具体的设定请参考其他文档哦~
|
||||||
- TabList自动按照前缀的权重排序 (如有冲突可关掉)
|
- TabList自动按照前缀的权重排序 (如有冲突可关掉)
|
||||||
- 玩家头顶前缀显示 (如有冲突可关掉) [✈](https://github.com/CarmJos/UserPrefix/blob/master/src/main/java/cc/carm/plugin/userprefix/nametag/UserNameTag.java)
|
- 玩家头顶前缀显示 (
|
||||||
- 简单的聊天变量修改功能!(不推荐使用) [✈](https://github.com/CarmJos/UserPrefix/blob/master/src/main/java/cc/carm/plugin/userprefix/listener/ChatListener.java)
|
如有冲突可关掉) [✈](https://github.com/CarmJos/UserPrefix/blob/master/src/main/java/cc/carm/plugin/userprefix/nametag/UserNameTag.java)
|
||||||
- 自动排序,且可翻页的GUI![✈](https://github.com/CarmJos/UserPrefix/blob/master/src/main/java/cc/carm/plugin/userprefix/ui/PrefixSelectGUI.java)
|
- 简单的聊天变量修改功能!(
|
||||||
- 支持PlaceholderAPI变量!(凡支持的都可以使用,如BungeeTabListPlus) [✈](https://github.com/CarmJos/UserPrefix/blob/master/src/main/java/cc/carm/plugin/userprefix/hooker/UserPrefixExpansion.java)
|
不推荐使用) [✈](https://github.com/CarmJos/UserPrefix/blob/master/src/main/java/cc/carm/plugin/userprefix/listener/ChatListener.java)
|
||||||
- 支持[Hex颜色](https://www.hexcolortool.com/)!(1.16以上版本) [✈](https://github.com/CarmJos/UserPrefix/blob/master/src/main/java/cc/carm/plugin/userprefix/util/ColorParser.java)
|
-
|
||||||
- 格式: `&(#颜色代码)`
|
|
||||||
- 示例: LightSlateBlue `&(#8470FF)` 、 DarkSlateBlue `&(#483D8B)`
|
自动排序,且可翻页的GUI![✈](https://github.com/CarmJos/UserPrefix/blob/master/src/main/java/cc/carm/plugin/userprefix/ui/PrefixSelectGUI.java)
|
||||||
|
|
||||||
|
- 支持PlaceholderAPI变量!(
|
||||||
|
凡支持的都可以使用,如BungeeTabListPlus) [✈](https://github.com/CarmJos/UserPrefix/blob/master/src/main/java/cc/carm/plugin/userprefix/hooker/UserPrefixExpansion.java)
|
||||||
|
-
|
||||||
|
|
||||||
|
支持[Hex颜色](https://www.hexcolortool.com/)!(1.16以上版本) [✈](https://github.com/CarmJos/UserPrefix/blob/master/src/main/java/cc/carm/plugin/userprefix/util/ColorParser.java)
|
||||||
|
|
||||||
|
- 格式: `&(#颜色代码)`
|
||||||
|
- 示例: LightSlateBlue `&(#8470FF)` 、 DarkSlateBlue `&(#483D8B)`
|
||||||
|
|
||||||
## 注意事项
|
## 注意事项
|
||||||
|
|
||||||
@ -99,8 +111,11 @@ The **English version** of the introduction is [here](https://github.com/CarmJos
|
|||||||
|
|
||||||
### [基础配置文件](https://github.com/CarmJos/UserPrefix/blob/master/src/main/resources/config.yml) (config.yml)
|
### [基础配置文件](https://github.com/CarmJos/UserPrefix/blob/master/src/main/resources/config.yml) (config.yml)
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>展开查看详细基础配置文件</summary>
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
version: 1.0.0-SNAPSHOT # 配置文件版本,一般不会动。
|
version: 2.1.9 # 配置文件版本,一般不会动。
|
||||||
|
|
||||||
debug: false #debug输出,开发者用的
|
debug: false #debug输出,开发者用的
|
||||||
|
|
||||||
@ -183,7 +198,13 @@ defaultPrefix:
|
|||||||
- "§a✔ 您正在使用该前缀"
|
- "§a✔ 您正在使用该前缀"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
### [消息配置文件](https://github.com/CarmJos/UserPrefix/blob/master/src/main/resources/messages.yml) (messages.yml)
|
### [消息配置文件](https://github.com/CarmJos/UserPrefix/blob/master/src/main/resources/messages.yml) (messages.yml)
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>展开查看详细消息配置文件</summary>
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
selected:
|
selected:
|
||||||
- "&7您选择了 &f%(name) &7作为当前显示的前缀。"
|
- "&7您选择了 &f%(name) &7作为当前显示的前缀。"
|
||||||
@ -206,11 +227,18 @@ list-value:
|
|||||||
- "&8- &7内容示例&r %(content) %(sender_name)"
|
- "&8- &7内容示例&r %(content) %(sender_name)"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
### [前缀配置文件](https://github.com/CarmJos/UserPrefix/blob/master/src/main/resources/prefixes/example-prefix.yml) (prefixes/*.yml)
|
### [前缀配置文件](https://github.com/CarmJos/UserPrefix/blob/master/src/main/resources/prefixes/example-prefix.yml) (prefixes/*.yml)
|
||||||
|
|
||||||
所有前缀均为单独的配置文件,存放于 `插件配置目录/prefixes` 下,便于管理。
|
所有前缀均为单独的配置文件,存放于 `插件配置目录/prefixes` 下,便于管理。
|
||||||
|
|
||||||
文件名理论上可以随便取,推荐使用英文,部分符号可能会影响正常读取,请避免使用。
|
文件名理论上可以随便取,推荐使用英文,部分符号可能会影响正常读取,请避免使用。
|
||||||
|
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>展开查看示例前缀配置文件</summary>
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# 唯一标识 [必须]
|
# 唯一标识 [必须]
|
||||||
# 将用于记录玩家所选的前缀,以及用于数据的缓存。
|
# 将用于记录玩家所选的前缀,以及用于数据的缓存。
|
||||||
@ -291,6 +319,7 @@ itemNoPermission:
|
|||||||
- "§e✯ 加入Pro+会员以使用该前缀!"
|
- "§e✯ 加入Pro+会员以使用该前缀!"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
## 支持与捐赠
|
## 支持与捐赠
|
||||||
|
|
||||||
@ -319,7 +348,7 @@ itemNoPermission:
|
|||||||
> 如果你想添加或删除某个功能,没问题,如果你想在别的项目中使用部分代码,也没问题,唯一的要求是,使用了这段代码的项目也必须使用 GPL 协议。
|
> 如果你想添加或删除某个功能,没问题,如果你想在别的项目中使用部分代码,也没问题,唯一的要求是,使用了这段代码的项目也必须使用 GPL 协议。
|
||||||
>
|
>
|
||||||
> 需要注意的是,分发的时候,需要明确提供源代码和二进制文件,另外,用于某些程序的某些协议有一些问题和限制,你可以看一下 @PierreJoye 写的 Practical Guide to GPL Compliance 一文。使用 GPL 协议,你必须在源代码代码中包含相应信息,以及协议本身。
|
> 需要注意的是,分发的时候,需要明确提供源代码和二进制文件,另外,用于某些程序的某些协议有一些问题和限制,你可以看一下 @PierreJoye 写的 Practical Guide to GPL Compliance 一文。使用 GPL 协议,你必须在源代码代码中包含相应信息,以及协议本身。
|
||||||
>
|
>
|
||||||
> *以上文字来自 [五种开源协议GPL,LGPL,BSD,MIT,Apache](https://www.oschina.net/question/54100_9455) 。*
|
> *以上文字来自 [五种开源协议GPL,LGPL,BSD,MIT,Apache](https://www.oschina.net/question/54100_9455) 。*
|
||||||
|
|
||||||
```text
|
```text
|
||||||
|
Loading…
Reference in New Issue
Block a user