Merge branch 'development'
This commit is contained in:
commit
315f08eb8b
|
@ -4,7 +4,7 @@ stages:
|
|||
variables:
|
||||
name: "UltimateKits"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "2.4.12"
|
||||
version: "2.4.13"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
|
|
@ -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