Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
speed committed Dec 4, 2020
1 parent 3a6a8b6 commit 3bf03d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .idea/TFGuilds.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
<repository>
<id>telesphoreo-repo</id>
<url>https://telesphoreo.me/repo/maven</url>
</repository>
</repositories>

<dependencies>
Expand All @@ -81,9 +77,9 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>me.totalfreedom</groupId>
<groupId>com.github.AtlasMediaGroup</groupId>
<artifactId>TotalFreedomMod</artifactId>
<version>2020.11.5</version>
<version>development-0be2aa718f-1</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/me/totalfreedom/tfguilds/bridge/TFMBridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public boolean isAdmin(Player player)
return player.isOp();
}

return getTFM().sl.isStaff(player);
return getTFM().al.isAdmin(player);
}

public boolean isAdmin(CommandSender sender)
Expand All @@ -57,11 +57,11 @@ public boolean isAdmin(CommandSender sender)
return sender.isOp();
}

return getTFM().sl.isStaff(sender);
return getTFM().al.isAdmin(sender);
}

public boolean isVanished(Player player)
{
return getTFM().sl.isVanished(player.getName());
return getTFM().al.isVanished(player.getName());
}
}

0 comments on commit 3bf03d8

Please sign in to comment.