This repository was archived by the owner on Jul 7, 2023. It is now read-only.
File tree 1 file changed +4
-4
lines changed
src/main/java/com/massivecraft/factions/cmd
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ public void perform() {
46
46
boolean isMyFaction = fme != null && faction == myFaction ;
47
47
48
48
49
- if (!fme .isAdminBypassing ()) {
49
+ if (! fme .isAdminBypassing ()) {
50
50
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 ) {
52
52
fme .msg (TL .GENERIC_FPERM_NOPERMISSION , "disband " + faction .getTag ());
53
53
return ;
54
54
}
@@ -66,10 +66,10 @@ public void perform() {
66
66
67
67
// check for tnt before disbanding.
68
68
69
- if (!disbandMap .containsKey (me .getUniqueId ().toString ()) && faction .getTnt () > 0 ) {
69
+ if (! disbandMap .containsKey (me .getUniqueId ().toString ()) && faction .getTnt () > 0 ) {
70
70
msg (TL .COMMAND_DISBAND_CONFIRM .toString ().replace ("{tnt}" , faction .getTnt () + "" ));
71
71
disbandMap .put (me .getUniqueId ().toString (), faction .getId ());
72
- Bukkit .getScheduler ().scheduleSyncDelayedTask (SavageFactions .plugin , new Runnable () {
72
+ Bukkit .getScheduler ().scheduleSyncDelayedTask (SavageFactions .plugin , new Runnable () {
73
73
@ Override
74
74
public void run () {
75
75
disbandMap .remove (me .getUniqueId ().toString ());
You can’t perform that action at this time.
0 commit comments