Note: there are some changes in config.yml but plugin will automatically update your file. Please do backup the file before updating to this version just in case. Bug Fix: - Fixed old configuration get deleted/replaced after plugin update the file
- Fixed NPE error when using custom cost
Changes: - added
id into custom cost
- Renamed
type to
balance_placeholder
Bug Fix: - Fixed "repairgui.admin" permission not working
Added: - able to set a gui's item unbreakable
Code (YAML):
1:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
# Add this if you want to set an item unbreakable unbreakable: true
slot: 1
RepairGui v.6.5.0 Improvement: - Recoded most of the classes - Player won't be able to add another item in multiple repair gui until it finish calculating the price. (This is for prevent player spam item and cause server lag due to the price calculation) - Better performance
Changes: - Renamed Only-Admin-Anvil to specific-anvil.
Code (YAML):
#Player can only open repair gui from the anvil that is placed by a person who have 'repairgui.anvil' permission specific-anvil: true
- Removed Open-GUI section.
Code (YAML):
# Removed Open-GUI:
command: true
anvil: true
- the jar are mixed together now. Support 1.8 ~ 1.15.2
- repairgui.admin.anvil permission renamed to repairgui.anvil
There're some people report about the anvil doesn't work if it is placed in the air and fall to the ground. I will fix it on the next version.
Bug Fixed: - Alias command not working
- Turtle hat / Trident max durability is 0
Important Announcement Due to some issues, i have to split the plugin into 2 versions. One will support versions 1.8~1.12.2, the other one will support versions from 1.13 and up.
For the people who are using the plugin on a 1.13 ~ 1.14.2 server, you will have to set the item material names again in repair.yml / multirepair.yml. Also "data" in item section does no long exist for versions that are 1.13 and above
Now you can edit your own allies command in the config.yml.
Just replace the RepairGui plugin and then restart the server. You will see a "allies-command" section in config.yml
Due to PlaceholderApi removing the class that I'm using to register the placeholder, the old version's custom placeholder [%repairgui_custom_xxx%] will not work if you're using
PlaceholderApi 2.10.2.
# {TYPE} = get tool's type (diamond/gold/chain/stone/wood) # Note: it will be replaced to the cost that set in "item-type" # {MAX_DURABILITY} = get tool's max durability
- added item type.
Warning: please use this new config to make sure the new placeholder {TYPE} works fine!
Code (YAML):
check-update: true
Prefix: '&6&l
[&aRepairGui&6&l
] '
Open-GUI:
command: true
# "/repair" to open Repair GUI anvil: true
# open Repair GUI on anvil repair-sound:
enable: true
sound: BLOCK_ANVIL_USE
#Player are only allowed to open the "RepaiGui" if only the anvil was placed by an admin. Only-Admin-Anvil: true
#===================================================================# # Available placeholders for repair-cost/item-type # # {DURABILITY} = shows item's broken durability. # # # # {ENCHANTAMOUNT} = shows item's enchantment amount. # # Note: if item doesn't have any enchantments, it outputs 0. # # # # {TYPE} = get tool's type (diamond/gold/chain/stone/wood) # # Note: it will be replaced to the cost that set in "item-type" # # # # {MAX_DURABILITY} = get tool's max durability # #===================================================================#
# Note: you can do math in "item-type" too. item-type:
DIAMOND: '2000'
GOLD: '1500'
CHAINMAIL: '1000'
IRON: '500'
STONE: '250'
WOODEN: '20'
repair-cost: money:
enable: true
cost: '
((10 *
{DURABILITY
}) + 200
) / 2'
level:
enable: true
cost: '
({DURABILITY
} + 200
) / 100'
# Note: placeholder for showing custom cost. [repairgui_custom_<name>] # Example "repairgui_custom_token", "repairgui_custom_coins" # Placeholder for custom cost: # %player_name% : output player's name # %cost% : output total repair cost custom:
enable: false
# This feature required PlaceholderAPI cost:
1: #TokenManager name: token
type: '
%tm_token%' #put the placeholder that show player's balance cost: '
({DURABILITY
} + 200
) / 100'
command: 'tokenmanager remove
%player_name% %cost%' # Doesn't need to put "/" 2: #Coins name: coins
type: '
%gemseconomy_balance%' cost: '
({DURABILITY
} + 200
) / 100'
command: 'coins take
%player_name% %cost%'
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!'
# %name% will output the "name" that you have set in the custom repair prices Not-Enough-Custom-Currencies: '&cYou don''t have enought
%name% to repair this item!' No-Permission: '&cYou don''t have permission to do this!'
Below is the changelog for updates from 5.0 to 6.1
5.0 - Added Custom Currencies repair cost feature
6.0 Beta - Recoded the plugin - temporarily removed placeholder support and custom currency repair cost - made a lot of changes in config.yml , repair.yml, multirepair.yml
6.0 Beta v2 - fixed "display_name" for item is not working - added lore section for every item
6.0 Beta v3 - Fixed error when clicking stained glass pane / other items
6.0 Beta v4 - Fixed Only-Admin-Anvil is not working
Note: there's a changes in config.yml , message section
Code (YAML):
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!'
# %name% will output the "name" that you have set in the custom repair prices Not-Enough-Custom-Currencies: '&cYou don''t have enought
%name% to repair this item!' No-Permission: '&cYou don''t have permission to do this!'
IMPORTANT 1. There have been a lot of changes to the configs, old config is not compatible with the newer versions, please use the new config 2. "Custom currency" repair function will be temporarily removed in v6.0 but will be readded in v6.1!
Code (YAML):
check-update: true
Prefix: '&6&l
[&aRepairGui&6&l
] '
Gui-Name: '&cRepair Gui'
Open-GUI:
command: true
# "/repair" to open Repair GUI anvil: true
# open Repair GUI on anvil
#Player are only allowed to open the "RepaiGui" if only the anvil was placed by an admin. Only-Admin-Anvil: true
# Note: placeholder for showing custom cost. [repairgui_custom_<name>] # Example "repairgui_custom_tokenmanager", "repairgui_custom_GemsEconomy" # Placeholder for custom cost: # %player_name% : output player's name # %cost% : output total repair cost custom:
enable: false
# This feature required PlaceholderAPI cost:
1:
name: TokenManager
type: '
%tm_token%' #put the placeholder that show player's balance cost: '
{Durability
} / 2'
command: 'tokenmanager remove
%player_name% %cost%' # Doesn't need to put "/" 2:
name: GemsEconomy
type: '
%gemseconomy_balance%' cost: '
{Durability
} / 100'
command: 'geco take
%player_name% %cost%'
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!'
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!'
#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