mirror of
https://github.com/CarmJos/UltraDepository.git
synced 2026-06-04 16:48:21 +08:00
379068b440
- [A] 针对物品能否出售的状态提供额外的配置。 - [A] 添加ActionBar提示(如需关掉仅需将消息设为"") - [A] 添加取回物品到背包的声音。 - [F] 修复SellGUI数量重调回0后(虽然不可能发生)物品仍然显示的问题 - [F] 修复SellGUI中可能存在的精度显示异常的问题。
110 lines
2.9 KiB
YAML
110 lines
2.9 KiB
YAML
# ${project.name} - ${project.description}
|
|
# Source url: ${project.url}
|
|
# Download URL: ${project.distributionManagement.downloadUrl}
|
|
|
|
version: ${project.version}
|
|
|
|
debug: false
|
|
|
|
# bStats Metrics
|
|
# This option is used to help developers analysis plugin stats,
|
|
# and will never affect performance and user experience.
|
|
# You can choose to turn it off here.
|
|
metrics: true
|
|
|
|
# Storage Configuration
|
|
storage:
|
|
|
|
# Storage method
|
|
# You can choose [ yaml | json | mysql ]
|
|
method: yaml
|
|
|
|
# The storage file path when choosing "yaml"/"json" method.
|
|
# Support absolute paths, e.g. “/var/data/ud/"(linux) or "D:\data\ud\"(windows)
|
|
# **Be aware of permission issues when using absolute paths!**
|
|
file-path: data
|
|
|
|
# The Database configuration when choosing "mysql" method.
|
|
mysql:
|
|
driver: "com.mysql.jdbc.Driver"
|
|
url: "jdbc:mysql://127.0.0.1:3306/<db-name>"
|
|
table: "ud_data" # Plugin data table name, allowing customization
|
|
username: "username"
|
|
password: "password"
|
|
|
|
|
|
# Player Collect Configuration
|
|
# Used to determine when put the player's item into the backpack automatically
|
|
collect:
|
|
pickup: true # Pickup Items
|
|
kill: true # Kill Entities (Animals/Monsters)
|
|
break: true # Break Blocks
|
|
|
|
sounds:
|
|
collect: "ENTITY_EXPERIENCE_ORB_PICKUP:0.5"
|
|
sell-success: "ENTITY_VILLAGER_CELEBRATE"
|
|
sell-fail: "ENTITY_VILLAGER_NO"
|
|
gui-click: "UI_BUTTON_CLICK"
|
|
|
|
# General Configuration
|
|
general:
|
|
|
|
# Hints lore for the item's information
|
|
# Will add to items in BackpackGUI and SellGUI.
|
|
additional-lore:
|
|
available-for-sale:
|
|
- " "
|
|
- "&fAmount &a%(amount)"
|
|
- "&fPrice &a%(price)"
|
|
- "&fSold &a%(remain)&8/%(limit)"
|
|
not-for-sale:
|
|
# Display when :
|
|
# 1. Vault not installed
|
|
# 2. No economy plugins
|
|
# 3. daily sell limit <= 0
|
|
# 4. item price <=0
|
|
- " "
|
|
- "&fAmount &a%(amount)"
|
|
|
|
# Hints lore for the player's click
|
|
# Will add to items in BackpackGUI.
|
|
click-lore:
|
|
available-for-sale:
|
|
- " "
|
|
- "&a&lLEFT-CLICK &8| &fSell items"
|
|
- "&a&lRIGHT-CLICK &8| &fTake one Stack"
|
|
not-for-sale:
|
|
# Display when :
|
|
# 1. Vault not installed
|
|
# 2. No economy plugins
|
|
# 3. daily sell limit <= 0
|
|
# 4. item price <=0
|
|
- " "
|
|
- "&a&lRIGHT-CLICK &8| &fTake one Stack"
|
|
|
|
|
|
# Configuration of the SellGUI
|
|
sell-gui:
|
|
title: "&8Selling %(item_name)"
|
|
items:
|
|
add:
|
|
type: GREEN_STAINED_GLASS_PANE
|
|
name: "&aAdd %(amount)"
|
|
remove:
|
|
type: RED_STAINED_GLASS_PANE
|
|
name: "&cReduce %(amount)"
|
|
confirm:
|
|
type: EMERALD
|
|
name: "&a&lConfirm"
|
|
lore:
|
|
- " "
|
|
- "&7You will sell &r%(item_name) &8x &f%(amount)"
|
|
- "&7and will get $&e%(money) &7."
|
|
- " "
|
|
- "&a&lClick to confirm"
|
|
cancel:
|
|
type: REDSTONE
|
|
name: "&c&lCancel"
|
|
lore:
|
|
- " "
|
|
- "&cClick to cancel" |