mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-08 19:51:36 +01:00
Added lang lines, fixed items resetting
This commit is contained in:
parent
a302800945
commit
6f001fc597
@ -159,7 +159,8 @@ public class GUIKitSelector extends AbstractGUI {
|
|||||||
meta.setDisplayName(Methods.convertToInvisibleString(kitItem + ":") + Methods.formatText(title));
|
meta.setDisplayName(Methods.convertToInvisibleString(kitItem + ":") + Methods.formatText(title));
|
||||||
ArrayList<String> lore = new ArrayList<>();
|
ArrayList<String> lore = new ArrayList<>();
|
||||||
if (kit.getPrice() != 0)
|
if (kit.getPrice() != 0)
|
||||||
lore.add(Methods.formatText("&7This kit costs &a$" + kit.getPrice() + "&7."));
|
lore.add(plugin.getLocale().getMessage("interface.selector.cost")
|
||||||
|
.processPlaceholder("cost", kit.getPrice()).getMessage());
|
||||||
else if (kit.getLink() != null)
|
else if (kit.getLink() != null)
|
||||||
lore.add(plugin.getLocale().getMessage("general.type.link").getMessage());
|
lore.add(plugin.getLocale().getMessage("general.type.link").getMessage());
|
||||||
|
|
||||||
@ -195,7 +196,7 @@ public class GUIKitSelector extends AbstractGUI {
|
|||||||
|
|
||||||
if (player.hasPermission("ultimatekits.admin")) {
|
if (player.hasPermission("ultimatekits.admin")) {
|
||||||
lore.add("");
|
lore.add("");
|
||||||
lore.add(Methods.formatText("&6Middle Click &7to edit positioning."));
|
lore.add(plugin.getLocale().getMessage("interface.selector.middleclick").getMessage());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
lore.add(Methods.formatText("&6&lEdit Mode"));
|
lore.add(Methods.formatText("&6&lEdit Mode"));
|
||||||
|
@ -161,7 +161,7 @@ public class KitItem {
|
|||||||
WordUtils.capitalize(item.getType().toString().toLowerCase().replace("_", " "));
|
WordUtils.capitalize(item.getType().toString().toLowerCase().replace("_", " "));
|
||||||
if (capitalizedName.contains(Methods.convertToInvisibleString(";faqe")))
|
if (capitalizedName.contains(Methods.convertToInvisibleString(";faqe")))
|
||||||
capitalizedName = meta.getDisplayName().split(Methods.convertToInvisibleString(";faqe"))[1];
|
capitalizedName = meta.getDisplayName().split(Methods.convertToInvisibleString(";faqe"))[1];
|
||||||
meta.setDisplayName(Methods.convertToInvisibleString(compileOptions() + ";faqe") + ChatColor.RESET + capitalizedName);
|
meta.setDisplayName(Methods.convertToInvisibleString(compileOptions() + ";faqe") + capitalizedName);
|
||||||
}
|
}
|
||||||
item.setItemMeta(meta);
|
item.setItemMeta(meta);
|
||||||
return item;
|
return item;
|
||||||
|
@ -16,6 +16,8 @@ interface.selector.aboutkit = "&7Can't open a kit?|&7Rank up to gain access!"
|
|||||||
interface.selector.leftpreview = "&6&lLEFT CLICK &7to preview kit."
|
interface.selector.leftpreview = "&6&lLEFT CLICK &7to preview kit."
|
||||||
interface.selector.rightclaim = "&6&lRIGHT CLICK &7to claim kit."
|
interface.selector.rightclaim = "&6&lRIGHT CLICK &7to claim kit."
|
||||||
interface.selector.rightbuy = "&6&lRIGHT CLICK &7to buy kit."
|
interface.selector.rightbuy = "&6&lRIGHT CLICK &7to buy kit."
|
||||||
|
interface.selector.cost = "&7This kit costs &a$%cost%&7."
|
||||||
|
interface.selector.middleclick = "&6Middle Click &7to edit positioning."
|
||||||
interface.hologram.previewonly = "Click to Preview!"
|
interface.hologram.previewonly = "Click to Preview!"
|
||||||
interface.hologram.preview = "Right-Click to Preview!"
|
interface.hologram.preview = "Right-Click to Preview!"
|
||||||
interface.hologram.buylink = "Left-Click for Buy Link!"
|
interface.hologram.buylink = "Left-Click for Buy Link!"
|
||||||
|
Loading…
Reference in New Issue
Block a user