This commit is contained in:
BenceX100 2024-08-11 13:04:07 +02:00
parent fda0c823ee
commit fc88f0e88d
3 changed files with 14 additions and 4 deletions

11
pom.xml
View File

@ -6,7 +6,7 @@
<groupId>com.artillexstudios</groupId>
<artifactId>AxTrade</artifactId>
<version>1.7.0</version>
<version>1.7.1</version>
<packaging>jar</packaging>
<name>AxTrade</name>
@ -112,7 +112,7 @@
<dependency>
<groupId>com.artillexstudios.axapi</groupId>
<artifactId>axapi</artifactId>
<version>1.4.315</version>
<version>1.4.329</version>
<scope>compile</scope>
<classifier>all</classifier>
</dependency>
@ -270,4 +270,11 @@
<scope>system</scope>
</dependency>
</dependencies>
<distributionManagement>
<repository>
<id>Artillex-Studios</id>
<url>https://repo.artillex-studios.com/releases/</url>
</repository>
</distributionManagement>
</project>

View File

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

View File

@ -125,4 +125,4 @@ decoration-example:
name: " "
# do not change this
version: 2
version: 1