mirror of
https://github.com/songoda/EpicBosses.git
synced 2025-02-08 15:11:19 +01:00
1.0.8-U1
+ Fixed issue where blocked/whitelisted regions weren't set up (were commented out with "TODO" posted)
This commit is contained in:
parent
fff79bb005
commit
866d437f05
@ -52,21 +52,21 @@ public class BossLocationManager implements IReloadable {
|
|||||||
if(getBlockedWorlds().contains(location.getWorld().getName())) return false;
|
if(getBlockedWorlds().contains(location.getWorld().getName())) return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean isInBlockedRegion = false;
|
||||||
|
|
||||||
if(this.bossHookManager.isWorldguardEnabld() && this.bossHookManager.getWorldGuardHelper() != null) {
|
if(this.bossHookManager.isWorldguardEnabld() && this.bossHookManager.getWorldGuardHelper() != null) {
|
||||||
// TODO: Add Blocked regions support
|
List<String> currentRegions = this.bossHookManager.getWorldGuardHelper().getRegionNames(location);
|
||||||
// List<String> currentRegions = this.bossHookManager.getWorldGuardHelper().getRegionNames(location);
|
|
||||||
// boolean blocked = false;
|
if(currentRegions != null) {
|
||||||
//
|
for(String s : this.bossHookManager.getWorldguardBlockedRegions()) {
|
||||||
// if(currentRegions != null) {
|
if(currentRegions.contains(s)) {
|
||||||
// for(String s : this.bossHookManager.getWorldguardBlockedRegions()) {
|
isInBlockedRegion = true;
|
||||||
// if(currentRegions.contains(s)) {
|
break;
|
||||||
// blocked = true;
|
}
|
||||||
// break;
|
}
|
||||||
// }
|
}
|
||||||
// }
|
|
||||||
//
|
if(isInBlockedRegion) return false;
|
||||||
// if(blocked) return false;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.bossHookManager.isFactionsEnabled() && this.bossHookManager.getFactionHelper() != null) {
|
if(this.bossHookManager.isFactionsEnabled() && this.bossHookManager.getFactionHelper() != null) {
|
||||||
@ -74,19 +74,19 @@ public class BossLocationManager implements IReloadable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(this.bossHookManager.isWorldguardEnabld() && this.bossHookManager.getWorldGuardHelper() != null) {
|
if(this.bossHookManager.isWorldguardEnabld() && this.bossHookManager.getWorldGuardHelper() != null) {
|
||||||
// List<String> currentRegions = this.bossHookManager.getWorldGuardHelper().getRegionNames(location);
|
List<String> currentRegions = this.bossHookManager.getWorldGuardHelper().getRegionNames(location);
|
||||||
// boolean allowed = false;
|
boolean allowed = false;
|
||||||
//
|
|
||||||
// if(currentRegions != null) {
|
if(currentRegions != null) {
|
||||||
// for(String s : this.bossHookManager.getWorldGuardSpawnRegions()) {
|
for(String s : this.bossHookManager.getWorldGuardSpawnRegions()) {
|
||||||
// if(currentRegions.contains(s)) {
|
if(currentRegions.contains(s)) {
|
||||||
// allowed = true;
|
allowed = true;
|
||||||
// break;
|
break;
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// if(!allowed) return false;
|
if(!allowed) return false;
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.bossHookManager.isAskyblockEnabled() && this.bossHookManager.getASkyblockHelper() != null) {
|
if(this.bossHookManager.isAskyblockEnabled() && this.bossHookManager.getASkyblockHelper() != null) {
|
||||||
|
2
pom.xml
2
pom.xml
@ -19,7 +19,7 @@
|
|||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<plugin.version>1.0.7-U3</plugin.version>
|
<plugin.version>1.0.8-U1</plugin.version>
|
||||||
<plugin.name>EpicBosses</plugin.name>
|
<plugin.name>EpicBosses</plugin.name>
|
||||||
<plugin.main>com.songoda.epicbosses.CustomBosses</plugin.main>
|
<plugin.main>com.songoda.epicbosses.CustomBosses</plugin.main>
|
||||||
<plugin.author>AMinecraftDev</plugin.author>
|
<plugin.author>AMinecraftDev</plugin.author>
|
||||||
|
Loading…
Reference in New Issue
Block a user