Bug Fixed:
- Gui background / accept button / cancel button aren't updated when reloading config
- Only-Admin-Anvil: false isn't working.
RepairGui 3.0 update information:
- Player can use EXP to repair item
- Placeholder changed.
Spoiler: All Placeholders
{PLAYER_LEVEL} = shows player's level.
{PLAYER_MONEY} = shows player's money.
{PLAYER_MONEY_FORMATTED} = shows player's money with formatted.
{PRICES_MONEY} = shows repair money cost.
{PRICES_MONEY_FORMATTED} = shows repair money cost with fomatted.
{PRICES_LEVEL} = shows repair level cost.
{DURABILITY} = shows item's broken durability.
{ENCHANTAMOUNT} = shows item's enchantment amount.
Note: if item doesn't have any enchantments, it outputs 0.
- Updated config
Please delete old config.
Spoiler: New Config
Code (YAML):
check-update
: true
Gui-Name
: '&cRepair Gui'
Open-GUI :
command
: true
anvil
: true
#Player are only allowed to open the "RepaiGui" if only the anvil was placed by an admin.
Only-Admin-Anvil
: true
Background :
item
: STAINED_GLASS_PANE
display_name
: ' '
data
: 3
#===================================================================#
# Available money/level/prices placeholders #
# {PLAYER_LEVEL} = shows player's level. #
# #
# {PLAYER_MONEY} = shows player's money. #
# #
# {PLAYER_MONEY_FORMATTED} = shows player's money with formatted. #
# #
# {PRICES_MONEY} = shows repair money cost. #
# #
# {PRICES_MONEY_FORMATTED} = shows repair money cost with fomatted. #
# #
# {PRICES_LEVEL} = shows repair level cost. #
# #
# {DURABILITY} = shows item's broken durability. #
# #
# {ENCHANTAMOUNT} = shows item's enchantment amount. #
# #
# Note: if item doesn't have any enchantments, it outputs 0. #
#===================================================================#
Button :
accept :
item
: STAINED_GLASS
display-name
: '&aAccept'
data
: 5
lore :
- '&cCost
: $
{ PRICES_MONEY_FORMATTED
} +
{ PRICES_LEVEL
} levels'
- '&aCurrently Money
:
{ PLAYER_MONEY_FORMATTED
} '
- '&aCurrently Level
:
{ PLAYER_LEVEL
} level'
cancel :
item
: STAINED_GLASS
display-name
: '&cCancel'
data
: 14
lore
: - ''
- ''
#===================================================================#
# Available placeholders for repair-cost #
# {DURABILITY} = shows item's broken durability. #
# #
# {ENCHANTAMOUNT} = shows item's enchantment amount. #
# #
# Note: if item doesn't have any enchantments, it outputs 0. #
#===================================================================#
repair-cost
:
money
: true
level
: true
money-cost
: '
(
( 10 *
{ Durability
}
) + 200
) / 2'
level-cost
: '
{ Durability
} / 2'
repair-sound :
enable
: true
sound
: BLOCK_ANVIL_USE
Message :
not-enough-money
: '&cYou don''t have enough money to repair this item!'
not-enough-level
: '&cYou don''t have enough level to repair this item!'
no-permission
: '&cYou don''t have permission to do this!'