mirror of
https://github.com/TotalFreedomMC/TF-Marriage.git
synced 2024-05-19 19:11:21 +00:00
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>
|
<dependency>
|
||||||
<groupId>me.totalfreedom</groupId>
|
<groupId>me.totalfreedom</groupId>
|
||||||
<artifactId>TotalFreedomMod</artifactId>
|
<artifactId>TotalFreedomMod</artifactId>
|
||||||
<version>2020.9</version>
|
<version>2020.11.5</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
|
@ -26,8 +26,8 @@ public class TFM
|
||||||
return null;
|
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
|
@Override
|
||||||
public void execute() {
|
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.");
|
sender.sendMessage(ChatColor.RED + "You are not permitted to use this command.");
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class CommandPriest extends Command {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void execute() {
|
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.");
|
sender.sendMessage(ChatColor.RED + "You are not permitted to use this command.");
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -22,7 +22,7 @@ public class CommandReload extends Command {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void execute() {
|
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.");
|
sender.sendMessage(ChatColor.RED + "You are not permitted to use this command.");
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class CommandUpdate extends Command {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void execute() {
|
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.");
|
sender.sendMessage(ChatColor.RED + "You are not permitted to use this command.");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue