diff --git a/WG/pom.xml b/WG/pom.xml
index 3211db6..42d0f47 100644
--- a/WG/pom.xml
+++ b/WG/pom.xml
@@ -71,9 +71,9 @@
provided
- me.totalfreedom
- TotalFreedomMod
- 7.1.0
+ me.telesphoreo
+ DummyTFM
+ 1.1.a
provided
diff --git a/WG/src/main/java/net/goldtreeservers/worldguardextraflags/wg/TFMHandler.java b/WG/src/main/java/net/goldtreeservers/worldguardextraflags/wg/TFMHandler.java
index 72dfd2a..5bca017 100644
--- a/WG/src/main/java/net/goldtreeservers/worldguardextraflags/wg/TFMHandler.java
+++ b/WG/src/main/java/net/goldtreeservers/worldguardextraflags/wg/TFMHandler.java
@@ -1,31 +1,13 @@
package net.goldtreeservers.worldguardextraflags.wg;
-import me.totalfreedom.totalfreedommod.TotalFreedomMod;
-import org.bukkit.Bukkit;
-import org.bukkit.plugin.Plugin;
+import me.totalfreedom.totalfreedommod.admin.AdminList;
public class TFMHandler
{
- private static TotalFreedomMod totalFreedomMod = null;
-
- public static TotalFreedomMod getTFM()
- {
- if (totalFreedomMod != null)
- {
- return totalFreedomMod;
- }
- Plugin plugin = Bukkit.getPluginManager().getPlugin("TotalFreedomMod");
- if (plugin != null && plugin.isEnabled())
- {
- totalFreedomMod = (TotalFreedomMod)plugin;
- return totalFreedomMod;
- }
-
- return null;
- }
+ private static final AdminList al = new AdminList();
public static boolean isAdmin(String name)
{
- return getTFM().adminList.getEntryByName(name) != null;
+ return al.getEntryByName(name) != null;
}
}
\ No newline at end of file