Make it work this way.
I can't seem to make forName() work at all for me, so let's just use an old API thing and catch that, which reliably works for me. Tested with 1.7.x - Factions 1.6.9.5 - mcore 7.0.1 + Factions 2.3.0master
parent
d8965a5b97
commit
0196cbb0c2
|
@ -1307,13 +1307,13 @@ displace:
|
|||
/* Detect Factions */
|
||||
if (org.bukkit.Bukkit.getPluginManager().isPluginEnabled("Factions")) {
|
||||
try {
|
||||
/* 2.x versions based on mcore */
|
||||
Class.forName("com.massivecraft.factions.entity", false, null);
|
||||
/* this is an old API thing */
|
||||
new com.massivecraft.factions.FLocation();
|
||||
} catch (NoClassDefFoundError e) {
|
||||
have_factions = true;
|
||||
} catch(ClassNotFoundException e) {
|
||||
/* 1.6.9.5 and below */
|
||||
have_factions_old = true;
|
||||
}
|
||||
if (!have_factions)
|
||||
have_factions_old = true;
|
||||
}
|
||||
|
||||
/* Towny */
|
||||
|
|
Loading…
Reference in New Issue