mirror of
https://github.com/CarmJos/UserPrefix.git
synced 2026-06-04 23:43:29 +08:00
9cff1c03dc
1. 修复低版本可能无法读取物品的bug。 2. 分离配置文件,消息配置文件改为`messages.yml`,前缀配置文件改为`prefixes/*.yml`,便于配置和管理。 3. 允许配置GUI中上一页和下一页的物品。 4. 补全帮助文档,在插件首次加载将提供一份英文版的配置,以便使用。
71 lines
1.8 KiB
YAML
71 lines
1.8 KiB
YAML
version: ${project.version} # DO NOT EDIT IT
|
|
|
|
debug: false #DEBUG OUT PUT
|
|
|
|
GUI:
|
|
title: "&f&lMy Prefixes List" # Title of the GUI
|
|
items:
|
|
next-page: # only show has next page
|
|
==: org.bukkit.inventory.ItemStack
|
|
type: ARROW
|
|
meta:
|
|
==: ItemMeta
|
|
meta-type: UNSPECIFIC
|
|
display-name: "§fNext Page"
|
|
lore:
|
|
- ""
|
|
- "§fRight-Click to the last page"
|
|
previous-page: # only show has previous page
|
|
==: org.bukkit.inventory.ItemStack
|
|
type: ARROW
|
|
meta:
|
|
==: ItemMeta
|
|
meta-type: UNSPECIFIC
|
|
display-name: "§fPrevious Page"
|
|
lore:
|
|
- ""
|
|
- "§fRight-Click to the first page"
|
|
|
|
functions:
|
|
# Whether to add a prefix to the top of the head,
|
|
# this method uses the scoreboard above the head,
|
|
# please turn it off if there is a conflict.
|
|
OnNamePrefix: true
|
|
# Automatic prefix select.
|
|
# When the player does not choose a prefix by himself,
|
|
# the prefix with the highest weight will be used automatically
|
|
autoUsePrefix: true
|
|
|
|
|
|
|
|
Sounds:
|
|
# Format is [SOUND_NAME:Volume:Pitch] or [SOUND_NAME:Volume] or [SOUND_NAME]
|
|
openGUI: "BLOCK_NOTE_BLOCK_PLING:1:1"
|
|
guiClick: "UI_BUTTON_CLICK"
|
|
prefixChange: "ENTITY_VILLAGER_YES"
|
|
prefixExpired: "ENTITY_VILLAGER_NO"
|
|
|
|
# The default prefix's weight is 0.
|
|
defaultPrefix:
|
|
name: "Default prefix"
|
|
content: "&b"
|
|
itemNotUsing:
|
|
==: org.bukkit.inventory.ItemStack
|
|
type: NAME_TAG
|
|
meta:
|
|
==: ItemMeta
|
|
meta-type: UNSPECIFIC
|
|
display-name: "§fThe default prefix §f(Click to select)"
|
|
lore:
|
|
- ""
|
|
- "§a➥ Click to use"
|
|
itemUsing:
|
|
==: org.bukkit.inventory.ItemStack
|
|
type: NAME_TAG
|
|
meta:
|
|
==: ItemMeta
|
|
meta-type: UNSPECIFIC
|
|
display-name: "§fThe default prefix"
|
|
lore:
|
|
- ""
|
|
- "§a✔ Selected" |