Fixed Faction Alt And Member Limits
This commit is contained in:
parent
55d6af7195
commit
fe7738fea0
@ -125,8 +125,6 @@ public class CmdJoin extends FCommand {
|
|||||||
} else {
|
} else {
|
||||||
fplayer.setFaction(faction, false);
|
fplayer.setFaction(faction, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
faction.deinvite(fplayer);
|
|
||||||
try {
|
try {
|
||||||
context.fPlayer.setRole(faction.getDefaultRole());
|
context.fPlayer.setRole(faction.getDefaultRole());
|
||||||
FactionsPlugin.instance.logFactionEvent(faction, FLogType.INVITES, context.fPlayer.getName(), CC.Green + "joined", "the faction");
|
FactionsPlugin.instance.logFactionEvent(faction, FLogType.INVITES, context.fPlayer.getName(), CC.Green + "joined", "the faction");
|
||||||
@ -154,7 +152,7 @@ public class CmdJoin extends FCommand {
|
|||||||
|
|
||||||
private int getFactionMemberLimit(Faction f) {
|
private int getFactionMemberLimit(Faction f) {
|
||||||
if (f.getUpgrade(UpgradeType.MEMBERS) == 0) return Conf.factionMemberLimit;
|
if (f.getUpgrade(UpgradeType.MEMBERS) == 0) return Conf.factionMemberLimit;
|
||||||
return Conf.factionMemberLimit + FactionsPlugin.getInstance().getConfig().getInt("fupgrades.MainMenu.Members.Member-Boost.level-" + f.getUpgrade(UpgradeType.MEMBERS));
|
return Conf.factionMemberLimit + FactionsPlugin.getInstance().getConfig().getInt("fupgrades.MainMenu.Members.Members-Limit.level-" + f.getUpgrade(UpgradeType.MEMBERS));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user