From bc86eea28bbbdeeb57c122aa9a6f45ce4b1b2afe Mon Sep 17 00:00:00 2001 From: ItsLewizzz Date: Mon, 15 Jun 2020 14:18:18 +0100 Subject: [PATCH] Remove my discord link from default messages --- .../java/fun/lewisdev/deluxehub/utility/ItemStackBuilder.java | 2 +- src/main/resources/config.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/fun/lewisdev/deluxehub/utility/ItemStackBuilder.java b/src/main/java/fun/lewisdev/deluxehub/utility/ItemStackBuilder.java index f50da8f7..18846197 100644 --- a/src/main/java/fun/lewisdev/deluxehub/utility/ItemStackBuilder.java +++ b/src/main/java/fun/lewisdev/deluxehub/utility/ItemStackBuilder.java @@ -30,7 +30,7 @@ public ItemStackBuilder(ItemStack item) { } public static ItemStackBuilder getItemStack(ConfigurationSection section, Player player) { - ItemStack item = XMaterial.matchXMaterial(section.getString("material")).get().parseItem(); + ItemStack item = XMaterial.matchXMaterial(section.getString("material").toUpperCase()).get().parseItem(); if (item.getType() == XMaterial.PLAYER_HEAD.parseMaterial()) { if (section.contains("base64")) { diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index a40aa17a..2c3ea9c6 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -285,7 +285,7 @@ join_events: - "[MESSAGE] &r" - "[MESSAGE] &r &2&lWEBSITE &fwww.examplemc.net" - "[MESSAGE] &r &3&lSTORE &fstore.examplemc.net" - - "[MESSAGE] &r &9&lDISCORD &fhttps://discord.lewisdev.fun" + - "[MESSAGE] &r &9&lDISCORD &fdiscord.examplemc.net" - "[MESSAGE] &r" - "[MESSAGE] &r &7&oPowered By DeluxeHub" - "[MESSAGE] &8&m+---------------***---------------+" @@ -340,7 +340,7 @@ custom_join_items: - "[MESSAGE] &r" - "[MESSAGE] &bWebsite: &fwww.examplemc.net" - "[MESSAGE] &cStore: &fbuy.examplemc.net" - - "[MESSAGE] &dDiscord: &fhttps://discord.lewisdev.fun" + - "[MESSAGE] &dDiscord: &fdiscord.examplemc.net" - "[MESSAGE] &r" server_selector: material: NETHER_STAR