Fixed clan contribution points decreasing clan exp.

Contributed by nasseka.
This commit is contained in:
MobiusDevelopment
2021-12-17 18:05:56 +00:00
parent b73c6387bd
commit b25618c95c
6 changed files with 64 additions and 38 deletions

View File

@@ -156,9 +156,10 @@ public class AdminPledge implements IAdminCommandHandler
}
final int level = Integer.parseInt(param);
if ((level >= 0) && (level < 12))
if ((level >= 0) && (level <= (Clan.EXP_TABLE.length - 1)))
{
clan.changeLevel(level);
clan.setExp(activeChar.getObjectId(), Clan.EXP_TABLE[level]);
for (Player member : clan.getOnlineMembers(0))
{
member.broadcastUserInfo(UserInfoType.RELATION, UserInfoType.CLAN);