Update for TFM admin refactor
This commit is contained in:
parent
de2dff0376
commit
35995af68a
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue