Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 7f1785e

Browse files
committed
Fixed disband issue.
1 parent b1b9bd1 commit 7f1785e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/massivecraft/factions/cmd/CmdDisband.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ public void perform() {
4646
boolean isMyFaction = fme != null && faction == myFaction;
4747

4848

49-
if (!fme.isAdminBypassing()) {
49+
if (! fme.isAdminBypassing()) {
5050
Access access = faction.getAccess(fme, PermissableAction.DISBAND);
51-
if (access != Access.ALLOW || fme.getRole() != Role.LEADER) {
51+
if (fme.getRole() != Role.LEADER && access != Access.ALLOW) {
5252
fme.msg(TL.GENERIC_FPERM_NOPERMISSION, "disband " + faction.getTag());
5353
return;
5454
}
@@ -66,10 +66,10 @@ public void perform() {
6666

6767
// check for tnt before disbanding.
6868

69-
if (!disbandMap.containsKey(me.getUniqueId().toString()) && faction.getTnt() > 0) {
69+
if (! disbandMap.containsKey(me.getUniqueId().toString()) && faction.getTnt() > 0) {
7070
msg(TL.COMMAND_DISBAND_CONFIRM.toString().replace("{tnt}", faction.getTnt() + ""));
7171
disbandMap.put(me.getUniqueId().toString(), faction.getId());
72-
Bukkit.getScheduler().scheduleSyncDelayedTask(SavageFactions.plugin, new Runnable() {
72+
Bukkit.getScheduler().scheduleSyncDelayedTask(SavageFactions.plugin, new Runnable() {
7373
@Override
7474
public void run() {
7575
disbandMap.remove(me.getUniqueId().toString());

0 commit comments

Comments
 (0)