mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-09-29 22:27:35 +02:00
Make sure to check translations for money and commands.
This commit is contained in:
parent
cf25027985
commit
56d345ece3
@ -209,13 +209,17 @@ public class Kit {
|
||||
is.setItemMeta(meta);
|
||||
}
|
||||
|
||||
if (is.getType() == Material.PAPER && ChatColor.stripColor(is.getItemMeta().getDisplayName()).endsWith("Command")) {
|
||||
if (is.getType() == Material.PAPER && is.getItemMeta().getDisplayName()
|
||||
.equals(UltimateKits.getInstance().getLocale().getMessage("general.type.command")
|
||||
.getMessage())) {
|
||||
StringBuilder command = new StringBuilder();
|
||||
for (String line : is.getItemMeta().getLore()) {
|
||||
command.append(line);
|
||||
}
|
||||
list.add(new KitItem(is, ChatColor.stripColor(command.toString())));
|
||||
} else if (is.getType() == Material.PAPER && ChatColor.stripColor(is.getItemMeta().getDisplayName()).endsWith("Money")) {
|
||||
} else if (is.getType() == Material.PAPER && is.getItemMeta().getDisplayName()
|
||||
.equals(UltimateKits.getInstance().getLocale().getMessage("general.type.money")
|
||||
.getMessage())) {
|
||||
String money = is.getItemMeta().getLore().get(0);
|
||||
list.add(new KitItem(is, ChatColor.stripColor(money)));
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user