mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Bending now supports the latest factions & mcore
Added support for the latest version of factions and the latest version of MassiveCore
This commit is contained in:
parent
7b9243afb2
commit
9f02959cf0
1 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ import org.bukkit.plugin.PluginManager;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
|
||||||
import com.massivecraft.factions.listeners.FactionsListenerMain;
|
import com.massivecraft.factions.listeners.FactionsListenerMain;
|
||||||
import com.massivecraft.mcore.ps.PS;
|
import com.massivecraft.massivecore.ps.PS;
|
||||||
import com.palmergames.bukkit.towny.Towny;
|
import com.palmergames.bukkit.towny.Towny;
|
||||||
import com.palmergames.bukkit.towny.TownyMessaging;
|
import com.palmergames.bukkit.towny.TownyMessaging;
|
||||||
import com.palmergames.bukkit.towny.TownySettings;
|
import com.palmergames.bukkit.towny.TownySettings;
|
||||||
|
@ -1090,7 +1090,7 @@ public class Methods {
|
||||||
Plugin fcp = pm.getPlugin("Factions");
|
Plugin fcp = pm.getPlugin("Factions");
|
||||||
Plugin twnp = pm.getPlugin("Towny");
|
Plugin twnp = pm.getPlugin("Towny");
|
||||||
Plugin gpp = pm.getPlugin("GriefPrevention");
|
Plugin gpp = pm.getPlugin("GriefPrevention");
|
||||||
Plugin mcore = pm.getPlugin("mcore");
|
Plugin massivecore = pm.getPlugin("MassiveCore");
|
||||||
|
|
||||||
for (Location location : new Location[] { loc, player.getLocation() }) {
|
for (Location location : new Location[] { loc, player.getLocation() }) {
|
||||||
|
|
||||||
|
@ -1150,7 +1150,7 @@ public class Methods {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fcp != null && mcore != null && respectFactions) {
|
if (fcp != null && massivecore != null && respectFactions) {
|
||||||
if (!FactionsListenerMain.canPlayerBuildAt(player, PS.valueOf(loc.getBlock()), false)) {
|
if (!FactionsListenerMain.canPlayerBuildAt(player, PS.valueOf(loc.getBlock()), false)) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue