mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 22:27:32 +00:00
Turn in Quests now work for Parties
This commit is contained in:
1 parent
db7ae50f95
commit
2dfb383245
2 files changed
+22
-1
No files matched your search
@@ -425,7 +425,11 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
Dialog dialog = getDialog(player);
|
||||
PlayerQuestData playerdata = PlayerDataController.Instance.getPlayerData(player).questData;
|
||||
QuestData data = playerdata.getQuestCompletion(player, this);
|
||||
if (data != null){
|
||||
Party partyCompleted = playerdata.getPartyQuestCompletion(player, this);
|
||||
if(partyCompleted != null){
|
||||
NoppesUtilPlayer.questPartyCompletion(partyCompleted);
|
||||
}
|
||||
else if (data != null){
|
||||
NoppesUtilPlayer.questCompletion((EntityPlayerMP) player, data.quest.id);
|
||||
Server.sendData((EntityPlayerMP)player, EnumPacketClient.QUEST_COMPLETION, data.quest.writeToNBT(new NBTTagCompound()));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user