From 5d059aea800f572b7268ac679310ebc8b3d13f6c Mon Sep 17 00:00:00 2001 From: Kam Date: Tue, 19 Mar 2024 05:08:01 -0400 Subject: [PATCH] setProgress Comments and new setPlayerProgress for Quest Objective All --- .../api/handler/data/IQuestObjective.java | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/java/noppes/npcs/api/handler/data/IQuestObjective.java b/java/noppes/npcs/api/handler/data/IQuestObjective.java index 060ef4f..980c9dc 100644 --- a/java/noppes/npcs/api/handler/data/IQuestObjective.java +++ b/java/noppes/npcs/api/handler/data/IQuestObjective.java @@ -3,7 +3,26 @@ package noppes.npcs.api.handler.data; public interface IQuestObjective { int getProgress(); - void setProgress(int var1); + /** + * If this function is used on a player within a party and the + * quest objective type is set to ALL. It will set everyone to have + * the same progress within the party. + * + * @param progress Progress Amount + */ + void setProgress(int progress); + + /** + * This function is typically used for setting individual + * progress for a player in a party for a Quest Objective + * that is set for ALL Players. This function will work + * like the normal setProgress if the player does not + * have a party + * + * @param playerName Name of Player + * @param progress Progress Amount + */ + void setPlayerProgress(String playerName, int progress); int getMaxProgress();