mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-08 11:41:10 +00:00
Fix AreaShop integration for regions using capital characters in their name (#190)
* Use a system dependency for AuthMe (maven repository is down) * Use maven repository for AreaShop instead of including the jar https://jenkins.wiefferink.me hosts the maven repository of AreaShop, so it is better to use that * Fix AreaShop integration for regions that use capital characters
This commit is contained in:
parent
3ae16b0c61
commit
cf4d1716b8
Binary file not shown.
BIN
lib/AuthMe-5.4.0.jar
Normal file
BIN
lib/AuthMe-5.4.0.jar
Normal file
Binary file not shown.
12
pom.xml
12
pom.xml
@ -135,6 +135,10 @@
|
||||
<id>jitpack-repo</id>
|
||||
<url>https://jitpack.io</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>nlthijs48-repo</id>
|
||||
<url>https://jenkins.wiefferink.me</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
@ -158,8 +162,9 @@
|
||||
<dependency>
|
||||
<groupId>fr.xephi</groupId>
|
||||
<artifactId>authme</artifactId>
|
||||
<version>5.2</version>
|
||||
<scope>provided</scope>
|
||||
<version>5.4.0</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${project.basedir}/lib/AuthMe-5.4.0.jar</systemPath>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.plotsquared</groupId>
|
||||
@ -210,8 +215,7 @@
|
||||
<groupId>me.wiefferink</groupId>
|
||||
<artifactId>areashop</artifactId>
|
||||
<version>2.4.0</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${project.basedir}/lib/AreaShop-2.4.0.jar</systemPath>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
@ -60,7 +60,7 @@ public class AreaShopListener implements Listener {
|
||||
if (!shop.getLocation().getWorld().getName().equals(generalRegion.getWorldName())) continue;
|
||||
|
||||
for (ProtectedRegion r : regionManager.getApplicableRegions(shop.getLocation())) {
|
||||
if (generalRegion.getName().equals(r.getId())) {
|
||||
if (generalRegion.getLowerCaseName().equals(r.getId())) {
|
||||
plugin.getShopUtils().removeShop(shop, true);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user