mirror of
https://github.com/Artillex-Studios/AxTrade.git
synced 2025-01-21 21:31:38 +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>
|
<groupId>com.artillexstudios</groupId>
|
||||||
<artifactId>AxTrade</artifactId>
|
<artifactId>AxTrade</artifactId>
|
||||||
<version>1.7.0</version>
|
<version>1.7.1</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>AxTrade</name>
|
<name>AxTrade</name>
|
||||||
@ -112,7 +112,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.artillexstudios.axapi</groupId>
|
<groupId>com.artillexstudios.axapi</groupId>
|
||||||
<artifactId>axapi</artifactId>
|
<artifactId>axapi</artifactId>
|
||||||
<version>1.4.315</version>
|
<version>1.4.329</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
<classifier>all</classifier>
|
<classifier>all</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
@ -270,4 +270,11 @@
|
|||||||
<scope>system</scope>
|
<scope>system</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<distributionManagement>
|
||||||
|
<repository>
|
||||||
|
<id>Artillex-Studios</id>
|
||||||
|
<url>https://repo.artillex-studios.com/releases/</url>
|
||||||
|
</repository>
|
||||||
|
</distributionManagement>
|
||||||
</project>
|
</project>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.artillexstudios.axtrade.utils;
|
package com.artillexstudios.axtrade.utils;
|
||||||
|
|
||||||
|
import com.artillexstudios.axapi.libs.boostedyaml.boostedyaml.block.implementation.Section;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
@ -9,7 +10,9 @@ public class BlackListUtils {
|
|||||||
|
|
||||||
public static boolean isBlackListed(@Nullable ItemStack it) {
|
public static boolean isBlackListed(@Nullable ItemStack it) {
|
||||||
if (it == null) return false;
|
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 (CONFIG.getString("blacklisted-items." + s + ".material") != null) {
|
||||||
if (!it.getType().toString().equalsIgnoreCase(CONFIG.getString("blacklisted-items." + s + ".material"))) continue;
|
if (!it.getType().toString().equalsIgnoreCase(CONFIG.getString("blacklisted-items." + s + ".material"))) continue;
|
||||||
return true;
|
return true;
|
||||||
|
@ -125,4 +125,4 @@ decoration-example:
|
|||||||
name: " "
|
name: " "
|
||||||
|
|
||||||
# do not change this
|
# do not change this
|
||||||
version: 2
|
version: 1
|
Loading…
Reference in New Issue
Block a user