@Override public void onPlayerEnter(Player player) { if (player.getVarBoolean("@received_navari_letter_6th")) return; // System.out.println("Player enter"); if (checkStartCondition(player)) { // System.out.println("Player enter and fit quest condition"); Quest q = QuestManager.getQuest(10779); player.processQuestEvent(q.getName(), "start_quest_delay", null); } }
@Override public void onLevelChange(Player player, int oldLvl, int newLvl) { // System.out.println("level change oldLvl " + oldLvl + " newLvl " + newLvl + // "checkStartCondition " + checkStartCondition(player)); if (oldLvl < minLevel && newLvl >= minLevel && checkStartCondition(player)) { // System.out.println("received_navari_letter_6th " + // player.getVarBoolean("@received_navari_letter_6th")); if (player.getVarBoolean("@received_navari_letter_6th")) return; Quest q = QuestManager.getQuest(10779); player.processQuestEvent(q.getName(), "start_quest", null); } }