mirror of
https://github.com/songoda/UltimateRepairing.git
synced 2024-11-01 00:10:19 +01:00
Lets preserve enchants.
This commit is contained in:
parent
96352498cd
commit
f1cbd6d22d
@ -78,18 +78,18 @@ public class RepairGui extends Gui {
|
||||
|
||||
final String itemName = TextUtils.formatText(ItemUtils.getItemName(item).replace("_", " "), true);
|
||||
if (type == RepairType.ECONOMY) {
|
||||
item = GuiUtils.createButtonItem(CompatibleMaterial.getMaterial(item),
|
||||
item = GuiUtils.createButtonItem(item,
|
||||
plugin.getLocale().getMessage("interface.repair.item")
|
||||
.processPlaceholder("ITEM", itemName).getMessage(),
|
||||
plugin.getLocale().getMessage("interface.repair.ecolore").getMessage());
|
||||
} else if (type == RepairType.ITEM) {
|
||||
item = GuiUtils.createButtonItem(CompatibleMaterial.getMaterial(item),
|
||||
item = GuiUtils.createButtonItem(item,
|
||||
plugin.getLocale().getMessage("interface.repair.item")
|
||||
.processPlaceholder("ITEM", itemName).getMessage(),
|
||||
plugin.getLocale().getMessage("interface.repair.itemlore")
|
||||
.processPlaceholder("item", itemName).getMessage());
|
||||
} else if (type == RepairType.EXPERIENCE) {
|
||||
item = GuiUtils.createButtonItem(CompatibleMaterial.getMaterial(item),
|
||||
item = GuiUtils.createButtonItem(item,
|
||||
plugin.getLocale().getMessage("interface.repair.item")
|
||||
.processPlaceholder("ITEM", itemName).getMessage(),
|
||||
plugin.getLocale().getMessage("interface.repair.xplore").getMessage());
|
||||
|
Loading…
Reference in New Issue
Block a user