Fixed some null SystemMessageId parameters.

Thanks to kinghanker.
This commit is contained in:
MobiusDevelopment
2022-04-23 10:00:28 +00:00
parent 99555d6bf6
commit f33a219ee6
8 changed files with 33 additions and 23 deletions

View File

@@ -396,7 +396,9 @@ public class EnterWorld implements IClientIncomingPacket
final ClanHall clanHall = ClanHallTable.getInstance().getClanHallByOwner(player.getClan());
if ((clanHall != null) && !clanHall.getPaid())
{
player.sendPacket(SystemMessageId.PAYMENT_FOR_YOUR_CLAN_HALL_HAS_NOT_BEEN_MADE_PLEASE_MAKE_PAYMENT_TO_YOUR_CLAN_WAREHOUSE_BY_S1_TOMORROW);
final SystemMessage sm = new SystemMessage(SystemMessageId.PAYMENT_FOR_YOUR_CLAN_HALL_HAS_NOT_BEEN_MADE_PLEASE_MAKE_PAYMENT_TO_YOUR_CLAN_WAREHOUSE_BY_S1_TOMORROW);
sm.addNumber(clanHall.getLease());
player.sendPacket(sm);
}
}