From c6c5caa9cac443a45db77d146f1dcae95c8fd4c4 Mon Sep 17 00:00:00 2001 From: Ryu Date: Thu, 26 Jul 2018 01:59:41 -0400 Subject: [PATCH] Updated settings for 1.13 in the config.yml --- src/main/java/com/songoda/repairplus/RepairPlus.java | 1 + .../java/com/songoda/repairplus/utils/SettingsManager.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/songoda/repairplus/RepairPlus.java b/src/main/java/com/songoda/repairplus/RepairPlus.java index 6fa0182..abbc1e0 100644 --- a/src/main/java/com/songoda/repairplus/RepairPlus.java +++ b/src/main/java/com/songoda/repairplus/RepairPlus.java @@ -22,6 +22,7 @@ public final class RepairPlus extends JavaPlugin implements Listener { public boolean v1_7 = Bukkit.getServer().getClass().getPackage().getName().contains("1_7"); public boolean v1_8 = Bukkit.getServer().getClass().getPackage().getName().contains("1_8"); + public boolean v1_13 = Bukkit.getServer().getClass().getPackage().getName().contains("1_13"); private static RepairPlus INSTANCE; diff --git a/src/main/java/com/songoda/repairplus/utils/SettingsManager.java b/src/main/java/com/songoda/repairplus/utils/SettingsManager.java index 21bcce9..fca6ebd 100644 --- a/src/main/java/com/songoda/repairplus/utils/SettingsManager.java +++ b/src/main/java/com/songoda/repairplus/utils/SettingsManager.java @@ -251,8 +251,8 @@ public class SettingsManager implements Listener { o4("ITEM-Cost-Equation", "{XPCost} * 3"), o5("Enchanted-Item-Multiplier", 2), - o6("ECO-Icon", "DOUBLE_PLANT"), - o7("XP-Icon", "EXP_BOTTLE"), + o6("ECO-Icon", (RepairPlus.getInstance().v1_13 ? "SUNFLOWER" : "DOUBLE_PLANT")), + o7("XP-Icon", (RepairPlus.getInstance().v1_13 ? "EXPERIENCE_BOTTLE" : "EXP_BOTTLE")), o8("ITEM", "DIAMOND"), o9("Exit-Icon", "WOOD_DOOR"),