mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 23:25:07 +00:00
Add Update Tracked Quest Frequency for ITEM QUESTs
This commit is contained in:
1 parent
8e247f8232
commit
0b7bd2f009
2 files changed
+20
-4
No files matched your search
@@ -15,6 +15,7 @@ public class ConfigMain
|
||||
|
||||
public final static String GENERAL = "General";
|
||||
public final static String NPC = "NPC";
|
||||
public final static String UPDATE = "Update";
|
||||
|
||||
/**
|
||||
* General Main Properties
|
||||
@@ -87,6 +88,13 @@ public class ConfigMain
|
||||
public static Property NpcUseOpCommandsProperty;
|
||||
public static boolean NpcUseOpCommands = false;
|
||||
|
||||
/**
|
||||
* Update Properties
|
||||
**/
|
||||
|
||||
public static Property TrackedQuestUpdateFrequencyProperty;
|
||||
public static int TrackedQuestUpdateFrequency = 5;
|
||||
|
||||
public static void init(File configFile)
|
||||
{
|
||||
config = new Configuration(configFile);
|
||||
@@ -161,6 +169,10 @@ public class ConfigMain
|
||||
SkinOverlayLimitProperty = config.get(NPC, "Skin Overlay Limit", 10, "The maximum number of overlays any npc/player can hold.");
|
||||
SkinOverlayLimit = SkinOverlayLimitProperty.getInt(10);
|
||||
|
||||
// Update
|
||||
TrackedQuestUpdateFrequencyProperty = config.get(UPDATE, "Tracked Quest Update Frequency", 5, "How often in seconds to update a players tracked quest. [Only applies to Item Quest currently]");
|
||||
TrackedQuestUpdateFrequency = TrackedQuestUpdateFrequencyProperty.getInt(5);
|
||||
|
||||
// Convert to Legacy
|
||||
if(CustomNpcs.legacyExist){
|
||||
EnableUpdateChecker = LegacyConfig.EnableUpdateChecker;
|
||||
|
||||
Reference in new issue
Block a user