From 7f1785e1528ce26aa7c6e416fd8d75b97deb5603 Mon Sep 17 00:00:00 2001 From: ProSavage Date: Tue, 6 Nov 2018 23:38:59 -0600 Subject: [PATCH] Fixed disband issue. --- .../java/com/massivecraft/factions/cmd/CmdDisband.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdDisband.java b/src/main/java/com/massivecraft/factions/cmd/CmdDisband.java index 7e8a443d..85f13ef3 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdDisband.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdDisband.java @@ -46,9 +46,9 @@ public class CmdDisband extends FCommand { boolean isMyFaction = fme != null && faction == myFaction; - if (!fme.isAdminBypassing()) { + if (! fme.isAdminBypassing()) { Access access = faction.getAccess(fme, PermissableAction.DISBAND); - if (access != Access.ALLOW || fme.getRole() != Role.LEADER) { + if (fme.getRole() != Role.LEADER && access != Access.ALLOW) { fme.msg(TL.GENERIC_FPERM_NOPERMISSION, "disband " + faction.getTag()); return; } @@ -66,10 +66,10 @@ public class CmdDisband extends FCommand { // check for tnt before disbanding. - if (!disbandMap.containsKey(me.getUniqueId().toString()) && faction.getTnt() > 0) { + if (! disbandMap.containsKey(me.getUniqueId().toString()) && faction.getTnt() > 0) { msg(TL.COMMAND_DISBAND_CONFIRM.toString().replace("{tnt}", faction.getTnt() + "")); disbandMap.put(me.getUniqueId().toString(), faction.getId()); - Bukkit.getScheduler().scheduleSyncDelayedTask(SavageFactions.plugin, new Runnable() { + Bukkit.getScheduler().scheduleSyncDelayedTask(SavageFactions.plugin, new Runnable() { @Override public void run() { disbandMap.remove(me.getUniqueId().toString());