mirror of
https://github.com/Artillex-Studios/AxTrade.git
synced 2025-01-04 18:47:51 +01:00
1.7.1
This commit is contained in:
parent
fda0c823ee
commit
fc88f0e88d
11
pom.xml
11
pom.xml
@ -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>
|
||||
|
@ -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;
|
||||
|
@ -125,4 +125,4 @@ decoration-example:
|
||||
name: " "
|
||||
|
||||
# do not change this
|
||||
version: 2
|
||||
version: 1
|
Loading…
Reference in New Issue
Block a user