mirror of
https://github.com/songoda/EpicBuckets.git
synced 2024-09-28 21:37:29 +02:00
Fixes Factions Support
This commit is contained in:
parent
f44348d0c0
commit
99af79a321
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
|||||||
<groupId>com.songoda</groupId>
|
<groupId>com.songoda</groupId>
|
||||||
<artifactId>EpicBuckets</artifactId>
|
<artifactId>EpicBuckets</artifactId>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<version>1.4.3</version>
|
<version>1.4.4</version>
|
||||||
<build>
|
<build>
|
||||||
<defaultGoal>clean package</defaultGoal>
|
<defaultGoal>clean package</defaultGoal>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
@ -96,6 +96,7 @@ public class ConfigManager {
|
|||||||
/*
|
/*
|
||||||
Genbucket
|
Genbucket
|
||||||
*/
|
*/
|
||||||
|
settingsGenbucketIntegers = new HashMap<>();
|
||||||
settingsGenbucketIntegers.put("Cooldown between placements", this::setCooldown);
|
settingsGenbucketIntegers.put("Cooldown between placements", this::setCooldown);
|
||||||
settingsGenbucketIntegers.put("Sponge radius", this::setSpongeRadius);
|
settingsGenbucketIntegers.put("Sponge radius", this::setSpongeRadius);
|
||||||
settingsGenbucketIntegers.put("Max active gens per player", this::setMaxGenbucketsPerPlayer);
|
settingsGenbucketIntegers.put("Max active gens per player", this::setMaxGenbucketsPerPlayer);
|
||||||
@ -108,6 +109,7 @@ public class ConfigManager {
|
|||||||
/*
|
/*
|
||||||
Genbucket
|
Genbucket
|
||||||
*/
|
*/
|
||||||
|
settingsGenbucketBooleans = new HashMap<>();
|
||||||
settingsGenbucketBooleans.put("Gens in Wilderness", this::setGensInWilderness);
|
settingsGenbucketBooleans.put("Gens in Wilderness", this::setGensInWilderness);
|
||||||
settingsGenbucketBooleans.put("Infinite genbucket use", this::setInfiniteUse);
|
settingsGenbucketBooleans.put("Infinite genbucket use", this::setInfiniteUse);
|
||||||
settingsGenbucketBooleans.put("Charge infinite use placement", this::setChargeInfiniteUse);
|
settingsGenbucketBooleans.put("Charge infinite use placement", this::setChargeInfiniteUse);
|
||||||
@ -118,6 +120,7 @@ public class ConfigManager {
|
|||||||
/*
|
/*
|
||||||
Hooks
|
Hooks
|
||||||
*/
|
*/
|
||||||
|
settingsHooks = new HashMap<>();
|
||||||
settingsHooks.put("Factions Support", this::setSupportFactions);
|
settingsHooks.put("Factions Support", this::setSupportFactions);
|
||||||
settingsHooks.put("Worldguard Support", this::setSupportWorldGuard);
|
settingsHooks.put("Worldguard Support", this::setSupportWorldGuard);
|
||||||
settingsHooks.put("GriefPrevention Support", this::setSupportGriefPrevention);
|
settingsHooks.put("GriefPrevention Support", this::setSupportGriefPrevention);
|
||||||
@ -125,6 +128,7 @@ public class ConfigManager {
|
|||||||
/*
|
/*
|
||||||
Shop
|
Shop
|
||||||
*/
|
*/
|
||||||
|
settingsShop = new HashMap<>();
|
||||||
settingsShop.put("Close GUI after purchase", epicBuckets.getShopManager()::setCloseAfterPurchase);
|
settingsShop.put("Close GUI after purchase", epicBuckets.getShopManager()::setCloseAfterPurchase);
|
||||||
settingsShop.put("Fill bulk shop", epicBuckets.getShopManager()::setBulkFillInventory);
|
settingsShop.put("Fill bulk shop", epicBuckets.getShopManager()::setBulkFillInventory);
|
||||||
settingsShop.put("Fill shops", this::setFillInventory);
|
settingsShop.put("Fill shops", this::setFillInventory);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package com.songoda.epicbuckets.regionhandler;
|
package com.songoda.epicbuckets.regionhandler;
|
||||||
|
|
||||||
import com.songoda.epicbuckets.EpicBuckets;
|
import com.songoda.epicbuckets.EpicBuckets;
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@ -8,8 +9,9 @@ public class RegionFactions {
|
|||||||
|
|
||||||
public static boolean canBuild(Player player, Location location) {
|
public static boolean canBuild(Player player, Location location) {
|
||||||
if (!EpicBuckets.getInstance().getConfigManager().isSupportFactions()) return true;
|
if (!EpicBuckets.getInstance().getConfigManager().isSupportFactions()) return true;
|
||||||
|
if (!Bukkit.getPluginManager().isPluginEnabled("Factions")) return true;
|
||||||
|
|
||||||
if (EpicBuckets.getInstance().getDescription().getAuthors().contains("drtshock")) {
|
if (Bukkit.getPluginManager().getPlugin("Factions").getDescription().getAuthors().contains("drtshock")) {
|
||||||
/*
|
/*
|
||||||
FactionsUUID and his clones/forks/whatever
|
FactionsUUID and his clones/forks/whatever
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
name: EpicBuckets
|
name: EpicBuckets
|
||||||
version: 1.4.3
|
version: 1.4.4
|
||||||
description: Generate walls fast and efficient with beautiful guis!
|
description: Generate walls fast and efficient with beautiful guis!
|
||||||
author: Songoda
|
author: Songoda
|
||||||
main: com.songoda.epicbuckets.EpicBuckets
|
main: com.songoda.epicbuckets.EpicBuckets
|
||||||
softdepend: [WorldGuard, WorldEdit, Factions, MassiveCore, FactionsUUID, GriefPrevention]
|
softdepend: [WorldGuard, WorldEdit, Factions, MassiveCore, GriefPrevention]
|
||||||
depend: [Vault]
|
depend: [Vault]
|
Loading…
Reference in New Issue
Block a user