Update for TFM admin refactor

This commit is contained in:
Telesphoreo 2020-11-23 00:20:09 -06:00
parent de2dff0376
commit 35995af68a
No known key found for this signature in database
GPG Key ID: 50B67E055A6F167C
6 changed files with 8 additions and 8 deletions

View File

@ -95,7 +95,7 @@
<dependency>
<groupId>me.totalfreedom</groupId>
<artifactId>TotalFreedomMod</artifactId>
<version>2020.9</version>
<version>2020.11.5</version>
<scope>provided</scope>
</dependency>
</dependencies>

View File

@ -26,8 +26,8 @@ public class TFM
return null;
}
public boolean isStaff(Player player)
public boolean isAdmin(Player player)
{
return getTFM().sl.isStaff(player);
return getTFM().al.isAdmin(player);
}
}
}

View File

@ -16,7 +16,7 @@ public class CommandChatSpy extends Command {
@Override
public void execute() {
if (!marriage.getTFM().isStaff(player))
if (!marriage.getTFM().isAdmin(player))
{
sender.sendMessage(ChatColor.RED + "You are not permitted to use this command.");
return;

View File

@ -27,7 +27,7 @@ public class CommandPriest extends Command {
@Override
public void execute() {
if (!marriage.getTFM().isStaff(player))
if (!marriage.getTFM().isAdmin(player))
{
sender.sendMessage(ChatColor.RED + "You are not permitted to use this command.");
return;

View File

@ -22,7 +22,7 @@ public class CommandReload extends Command {
@Override
public void execute() {
if (!marriage.getTFM().isStaff(player))
if (!marriage.getTFM().isAdmin(player))
{
sender.sendMessage(ChatColor.RED + "You are not permitted to use this command.");
return;

View File

@ -18,7 +18,7 @@ public class CommandUpdate extends Command {
@Override
public void execute() {
if (!marriage.getTFM().isStaff(player))
if (!marriage.getTFM().isAdmin(player))
{
sender.sendMessage(ChatColor.RED + "You are not permitted to use this command.");
return;