mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 06:25:11 +00:00
Validate the quest
This commit is contained in:
1 parent
46b9ec0c7e
commit
b302f3fecb
2 files changed
+7
-9
No files matched your search
@@ -212,7 +212,7 @@ public class Party {
|
||||
return this.partyMembers.keySet();
|
||||
}
|
||||
|
||||
// To Be Called DURING Invite, Leave, Quest Switch, Leader Switch, etc.
|
||||
// To Be Called during Set Quest or Quest Switch
|
||||
public boolean validateQuest(int questID) {
|
||||
IQuest quest = QuestController.Instance.get(questID);
|
||||
if (quest == null) {
|
||||
@@ -290,10 +290,6 @@ public class Party {
|
||||
sendInfoMessage(leader, String.format("%s was not found", playerName));
|
||||
}
|
||||
}
|
||||
|
||||
if(allowQuest){
|
||||
sendInfoMessage(leader, "\u00A7aQuest set to party!");
|
||||
}
|
||||
return allowQuest;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user