Fixed pom + added setting to minimize the jar size

This commit is contained in:
Niels Vergucht 2018-12-08 13:49:20 +01:00 committed by Brianna O'Keefe
parent 86f64b91f8
commit f04a19105c
3 changed files with 18 additions and 12 deletions

25
pom.xml
View File

@ -26,24 +26,31 @@
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>shaded</shadedClassifierName>
<artifactSet>
<includes>
<include>fr.minuskube.inv:smart-invs</include>
<include>co.aikar:acf-paper</include>
<include>co.aikar</include>
<include>me.lucko:helper</include>
<include>com.github.tr7zw:Item-NBT-API:*</include>
<include>org.apache.commons:commons-lang3</include>
<include>co.aikar:acf-bukkit</include>
<include>co.aikar:acf-core</include>
<include>co.aikar:Table</include>
<include>co.aikar:locales</include>
<include>co.aikar:minecraft-timings</include>
<include>com.github.tr7zw.Item-NBT-API</include>
<include>net.jodah:expiringmap</include>
<include>org.jetbrains:annotations</include>
<include>com.flowpowered:flow-math</include>
<include>com.google.code.findbugs</include>
<include>com.google.guava</include>
<include>org.apache.commons:commons-lang3</include>
</includes>
</artifactSet>
<relocations>
@ -88,7 +95,7 @@
<shadedPattern>${project.groupId}.${project.artifactId}.acf</shadedPattern>
</relocation>
<relocation>
<pattern>com.github.tr7zw</pattern>
<pattern>de.tr7zw.itemnbtapi</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.itemnbtapi</shadedPattern>
</relocation>
</relocations>

View File

@ -90,12 +90,11 @@ public class GenbucketManager {
public boolean canPlaceGenbucket(Player player, Location location) {
boolean factionsCheck = RegionFactions.canBuild(player, location);
boolean factionsUUIDCheck = RegionFactions.canBuild(player, location);
boolean griefPreventionCheck = RegionGriefPrevention.canBuild(player, location);
boolean worldGuardCheck = RegionWorldGuard.canBuild(player, location);
boolean worldBorderCheck = RegionWorldBorder.isOutsideOfBorder(location);
if (!factionsCheck || !factionsUUIDCheck || !griefPreventionCheck || !worldGuardCheck || worldBorderCheck) {
if (!factionsCheck || !griefPreventionCheck || !worldGuardCheck || worldBorderCheck) {
player.sendMessage(ChatUtil.colorPrefix(epicBuckets.getLocale().getMessage("event.place.nothere")));
return false;
}

View File

@ -78,7 +78,7 @@ public class GenbucketPlaceListener implements Listener {
}
if (!genbucket.isValidBlockFace()) {
e.getPlayer().sendMessage(epicBuckets.getLocale().getMessage("event.genbucket.placedwrong").replace("%genbucket%", StringUtils.capitalize(genbucket.getGenbucketType().name.toLowerCase()) + " genbucket"));
e.getPlayer().sendMessage(epicBuckets.getLocale().getMessage("event.genbucket.placedwrong").replace("%genbucket%", genbucket.getGenbucketType().name.toUpperCase() + " genbucket"));
return;
}
if (genbucket.getGenbucketType() == GenbucketType.PSUEDO && !epicBuckets.getConfigManager().getPsuedoMaterials().contains(XMaterial.requestXMaterial(e.getClickedBlock().getType().name(), e.getClickedBlock().getData()))) {