mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 08:49:41 +00:00
Party Quest Tracking
This commit is contained in:
1 parent
7a251ad64e
commit
67d4b3bd15
16 files changed
+308
-36
No files matched your search
@@ -454,6 +454,28 @@ public class QuestDialog extends QuestInterface implements IQuestDialog {
|
||||
|
||||
@Override
|
||||
public String getAdditionalText() {
|
||||
if(party != null && party.getObjectiveRequirement() == EnumPartyObjectives.All){
|
||||
List<String> incomplete = new ArrayList<>();
|
||||
for (UUID uuid: party.getPlayerUUIDs()) {
|
||||
EntityPlayer individual = NoppesUtilServer.getPlayer(uuid);
|
||||
PlayerData individualData;
|
||||
if(individual != null){
|
||||
individualData = PlayerDataController.Instance.getPlayerData(individual);
|
||||
}
|
||||
else {
|
||||
individualData = PlayerDataController.Instance.getPlayerDataCache(uuid.toString());
|
||||
}
|
||||
if(individualData != null){
|
||||
boolean read = individualData.dialogData.dialogsRead.contains(this.dialog.id);
|
||||
if(!read) {
|
||||
incomplete.add(individualData.playername);
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!incomplete.isEmpty())
|
||||
return "[" + String.join(", ", incomplete) + "]";
|
||||
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user