9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2025-12-28 19:29:16 +00:00

Fix some ultraregions issues

This commit is contained in:
Sam
2020-08-18 12:28:55 +01:00
parent 9296178ea9
commit 3e2b747ff4
2 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ version = pluginVersion
sourceCompatibility = 1.8
// Set to false if you don't have access to the UltraRegions API jar to make the plugin compilable. The purchased plugin has support for it.
ultraRegionsSupport = true
ultraRegions = ultraRegionsSupport
repositories {
mavenLocal()
@@ -40,7 +40,7 @@ repositories {
}
compileJava {
if (!ultraRegionsSupport) sourceSets.main.java.exclude "**/net/islandearth/rpgregions/api/integrations/ultraregions/UltraRegionsIntegration.java"
if (!ultraRegions) sourceSets.main.java.exclude "**/net/islandearth/rpgregions/api/integrations/ultraregions/UltraRegionsIntegration.java"
}
dependencies {
@@ -53,7 +53,7 @@ dependencies {
compileOnly 'org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT' // spigot
compileOnly 'net.zrips:residence:4.9.0.6' // residence
compileOnly 'me.ryanhamshire:griefprevention:16.13.0' // griefprevention
if (ultraRegionsSupport) compileOnly 'me.techscode:ultraregions:1.2.2' // ultraregions
if (ultraRegions) compileOnly 'me.techscode:ultraregions:1.2.2' // ultraregions
compileOnly project(':api')
compileOnly project(':rpgregions')
}

View File

@@ -32,7 +32,7 @@ public class UltraRegionsIntegration implements IntegrationManager {
@Override
public boolean isInRegion(Location location) {
return false;
return this.getProtectedRegions(location).size() > 0;
}
@Override