Quest Point Cape Login Check Fix

This commit is contained in:
downthecrop
2021-11-27 08:37:10 +00:00
committed by Ceikry
parent 5e405e829b
commit 9f9a759221
2 changed files with 4 additions and 1 deletions
@@ -76,7 +76,9 @@ public final class LoginValidationPlugin implements Plugin<Player> {
* @param player the player.
*/
private static void checkQuestPointsItems(final Player player) {
if (!player.getQuestRepository().hasCompletedAll() && player.getEquipment().contains(9813, 1) || player.getEquipment().contains(9814, 1)) {
if (!player.getQuestRepository().hasCompletedAll() &&
(player.getEquipment().contains(9813, 1) || player.getEquipment().contains(9814, 1))
) {
for (Item i : QUEST_ITEMS) {
if (player.getEquipment().remove(i)) {
player.getDialogueInterpreter().sendItemMessage(i, "As you no longer have completed all the quests, your " + i.getName() + " unequips itself to your " + (player.getInventory().freeSlots() < 1 ? "bank" : "inventory") + "!");