Skip to content

Commit

Permalink
Disallowed /f leave whilst last person in faction, must disband
Browse files Browse the repository at this point in the history
  • Loading branch information
Driftay committed Jul 26, 2024
1 parent a393957 commit e5b920d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ public void leave(boolean makePay) {

boolean perm = myFaction.isPermanent();

if (!perm && this.getRole() == Role.LEADER && myFaction.getFPlayers().size() > 1) {
if (!perm && this.getRole() == Role.LEADER && myFaction.getFPlayers().size() == 1) {
msg(TL.LEAVE_PASSADMIN);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/massivecraft/factions/zcore/util/TL.java
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public enum TL {
COMMAND_ALTKICK_NOTMEMBER("&c&l[!] &7This player is not a member of your faction."),

COMMAND_ALTS_LIST_NOALTS("&c&l[!] &7%s does not have any alts in their faction!"),
COMMAND_AUTOHELP_HELPFOR("Help for command"),
COMMAND_AUTOHELP_HECOMMAND_LEAVE_LEADER_MESSAGELPFOR("Help for command"),
COMMAND_HOME_OTHER_NOTSET("&c&l[!] &7%s does not have their faction home set!"),
COMMAND_HOME_TELEPORT_OTHER("&c&l[!] &7You have teleported to %s's faction home!"),
COMMAND_SHOP_DESCRIPTION("opens shop gui"),
Expand Down

0 comments on commit e5b920d

Please sign in to comment.