diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
index 442ab44..b008060 100644
--- a/.idea/jarRepositories.xml
+++ b/.idea/jarRepositories.xml
@@ -31,5 +31,10 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/TFGuilds.iml b/TFGuilds.iml
index 3a8dfbd..47ec461 100644
--- a/TFGuilds.iml
+++ b/TFGuilds.iml
@@ -8,6 +8,13 @@
+
+
+
+ SPIGOT
+
+
+
@@ -25,14 +32,86 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 1aa00d2..398dfa0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
me.totalfreedom
TFGuilds
- 0.2.12
+ 0.2.13
jar
TFGuilds
@@ -66,6 +66,10 @@
sonatype
https://oss.sonatype.org/content/groups/public/
+
+ telesphoreo-repo
+ https://telesphoreo.me/repo/maven
+
@@ -76,9 +80,9 @@
provided
- com.github.TFPatches
+ me.totalfreedom
TotalFreedomMod
- server-SNAPSHOT
+ 2020.9
provided
diff --git a/src/main/java/me/totalfreedom/tfguilds/bridge/TFMBridge.java b/src/main/java/me/totalfreedom/tfguilds/bridge/TFMBridge.java
index b92fa53..3b81cb8 100644
--- a/src/main/java/me/totalfreedom/tfguilds/bridge/TFMBridge.java
+++ b/src/main/java/me/totalfreedom/tfguilds/bridge/TFMBridge.java
@@ -46,7 +46,7 @@ public class TFMBridge
return player.isOp();
}
- return getTFM().al.isAdmin(player);
+ return getTFM().sl.isStaff(player);
}
public boolean isAdmin(CommandSender sender)
@@ -57,6 +57,6 @@ public class TFMBridge
return sender.isOp();
}
- return getTFM().al.isAdmin(sender);
+ return getTFM().sl.isStaff(sender);
}
}
\ No newline at end of file
diff --git a/src/main/java/me/totalfreedom/tfguilds/util/GUtil.java b/src/main/java/me/totalfreedom/tfguilds/util/GUtil.java
index 4013851..72d89f9 100644
--- a/src/main/java/me/totalfreedom/tfguilds/util/GUtil.java
+++ b/src/main/java/me/totalfreedom/tfguilds/util/GUtil.java
@@ -7,11 +7,11 @@ import java.util.Date;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
+import me.totalfreedom.totalfreedommod.TotalFreedomMod;
import org.apache.commons.lang.StringUtils;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
-import org.bukkit.metadata.MetadataValue;
public class GUtil
{
@@ -64,13 +64,6 @@ public class GUtil
public static boolean isVanished(Player player)
{
- for (MetadataValue meta : player.getMetadata("vanished"))
- {
- if (meta.asBoolean())
- {
- return true;
- }
- }
- return false;
+ return TotalFreedomMod.plugin().sl.isVanished(player.getName());
}
}
\ No newline at end of file