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:
@@ -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')
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ public class UltraRegionsIntegration implements IntegrationManager {
|
||||
|
||||
@Override
|
||||
public boolean isInRegion(Location location) {
|
||||
return false;
|
||||
return this.getProtectedRegions(location).size() > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user