Update for TFM refactor

This commit is contained in:
Telesphoreo 2021-12-07 17:22:04 -06:00
parent 58afb1dbab
commit 280eec309c
2 changed files with 4 additions and 5 deletions

View file

@ -7,9 +7,8 @@ dependencies {
exclude group: "org.bukkit", module: "bukkit"
}
compileOnly 'net.luckperms:api:5.0'
compileOnly('me.totalfreedom:TotalFreedomMod:7.0.0') {
compileOnly('me.totalfreedom:TotalFreedomMod:7.1.0') {
exclude group: "org.bstats", module: "bstats-bukkit"
exclude group: "me.rayzr522", module: "jsonmessage"
exclude group: "net.essentialsx", module: "EssentialsX"
exclude group: "me.totalfreedom", module: "TFGuilds"
}

View file

@ -31,15 +31,15 @@ public class TFMHandler {
}
public boolean isAdmin(User user) {
return getTFM().al.isAdmin(user.getBase());
return getTFM().adminList.isAdmin(user.getBase());
}
public boolean isAdmin(CommandSender sender) {
return getTFM().al.isAdmin(sender);
return getTFM().adminList.isAdmin(sender);
}
public boolean isAdmin(Player player) {
return getTFM().al.isAdmin(player);
return getTFM().adminList.isAdmin(player);
}
public boolean isVanished(User user) {