Merge branch 'development'

This commit is contained in:
Brianna 2019-11-27 20:57:40 -05:00
commit 315f08eb8b
2 changed files with 7 additions and 3 deletions

View File

@ -4,7 +4,7 @@ stages:
variables:
name: "UltimateKits"
path: "/builds/$CI_PROJECT_PATH"
version: "2.4.12"
version: "2.4.13"
build:
stage: build

View File

@ -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 {