Fixed customer support menu not showing if monthly bonus hasn't been claimed.
This commit is contained in:
parent
2d296d9226
commit
8ea0051181
@ -203,9 +203,12 @@ public class CustomerSupport extends MiniPlugin implements ResultSetCallable
|
|||||||
caller.sendMessage(C.cBlue + "Valentines Gifts Received : " + C.cYellow + valentinesGiftsReceived);
|
caller.sendMessage(C.cBlue + "Valentines Gifts Received : " + C.cYellow + valentinesGiftsReceived);
|
||||||
caller.sendMessage(C.cBlue + "Monthly Bonus Log (Last 6 entries):");
|
caller.sendMessage(C.cBlue + "Monthly Bonus Log (Last 6 entries):");
|
||||||
|
|
||||||
for (String logEntry : _accountBonusLog.get(client.getAccountId()))
|
if (_accountBonusLog.containsKey(client.getAccountId()))
|
||||||
{
|
{
|
||||||
caller.sendMessage(C.cYellow + logEntry);
|
for (String logEntry : _accountBonusLog.get(client.getAccountId()))
|
||||||
|
{
|
||||||
|
caller.sendMessage(C.cYellow + logEntry);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
caller.sendMessage(C.cDGreen + C.Strike + "=============================================");
|
caller.sendMessage(C.cDGreen + C.Strike + "=============================================");
|
||||||
@ -258,7 +261,8 @@ public class CustomerSupport extends MiniPlugin implements ResultSetCallable
|
|||||||
accountId = resultSet.getInt(1);
|
accountId = resultSet.getInt(1);
|
||||||
log.add("Received " + resultSet.getInt(3) + " " + resultSet.getString(2) + " on " + resultSet.getDate(4));
|
log.add("Received " + resultSet.getInt(3) + " " + resultSet.getString(2) + " on " + resultSet.getDate(4));
|
||||||
}
|
}
|
||||||
|
|
||||||
_accountBonusLog.put(accountId, log);
|
if (accountId != 0)
|
||||||
|
_accountBonusLog.put(accountId, log);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user