diff --git a/pom.xml b/pom.xml index 175efda..fa64631 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.artillexstudios AxTrade - 1.7.0 + 1.7.1 jar AxTrade @@ -112,7 +112,7 @@ com.artillexstudios.axapi axapi - 1.4.315 + 1.4.329 compile all @@ -270,4 +270,11 @@ system + + + + Artillex-Studios + https://repo.artillex-studios.com/releases/ + + diff --git a/src/main/java/com/artillexstudios/axtrade/utils/BlackListUtils.java b/src/main/java/com/artillexstudios/axtrade/utils/BlackListUtils.java index 27bbec4..f62fdf1 100644 --- a/src/main/java/com/artillexstudios/axtrade/utils/BlackListUtils.java +++ b/src/main/java/com/artillexstudios/axtrade/utils/BlackListUtils.java @@ -1,5 +1,6 @@ package com.artillexstudios.axtrade.utils; +import com.artillexstudios.axapi.libs.boostedyaml.boostedyaml.block.implementation.Section; import org.bukkit.inventory.ItemStack; import org.jetbrains.annotations.Nullable; @@ -9,7 +10,9 @@ public class BlackListUtils { public static boolean isBlackListed(@Nullable ItemStack it) { if (it == null) return false; - for (String s : CONFIG.getSection("blacklisted-items").getRoutesAsStrings(false)) { + final Section section = CONFIG.getSection("blacklisted-items"); + if (section == null) return false; + for (String s : section.getRoutesAsStrings(false)) { if (CONFIG.getString("blacklisted-items." + s + ".material") != null) { if (!it.getType().toString().equalsIgnoreCase(CONFIG.getString("blacklisted-items." + s + ".material"))) continue; return true; diff --git a/src/main/resources/guis.yml b/src/main/resources/guis.yml index 6078982..3550147 100644 --- a/src/main/resources/guis.yml +++ b/src/main/resources/guis.yml @@ -125,4 +125,4 @@ decoration-example: name: " " # do not change this -version: 2 \ No newline at end of file +version: 1 \ No newline at end of file