private static void checkIfCompleteTask(Player p, SlayerTask task) { task.setAmount(task.getAmount() - 1); if (task.getAmount() <= 0) { doDialogue(p, 1062); p.getPackets().sendMessage("You have completed your Slayer task, please return to a Slayer master."); p.setSlayerTask(null); } }