mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 04:59:05 +00:00
NPC Script Logging Config V 1.0
Added V 1.0 (CNPC+ Script Logging) > Logs Activities for when CNPC+ Scripts are called (Writes to CustomNPCs-latest.log) Configuration Options Available in Config
This commit is contained in:
1 parent
29b716a25c
commit
37da3f6069
3 files changed
+118
-3
No files matched your search
@@ -59,6 +59,12 @@ public class CustomNpcs {
|
||||
"Every additional compound tag adds 65535 more characters to your script length limit. Use incrementally, with caution.")
|
||||
public static int ExpandedScriptLimit = 2;
|
||||
|
||||
@ConfigProp(info = "Enables if Scripting Information should be printed to CustomNPCs Logs")
|
||||
public static boolean ScriptLogging = false;
|
||||
|
||||
@ConfigProp(info = "Amount of logs per minute that would be marked as SPAM [10, 300]")
|
||||
public static int ScriptFrequency = 30;
|
||||
|
||||
@ConfigProp(info = "Navigation search range for NPCs. Not recommended to increase if you have a slow pc or on a server. Minimum of 16, maximum of 96.")
|
||||
public static int NpcNavRange = 32;
|
||||
|
||||
@@ -227,6 +233,11 @@ public class CustomNpcs {
|
||||
if (ExpandedScriptLimit < 0)
|
||||
ExpandedScriptLimit = 0;
|
||||
|
||||
if (ScriptFrequency < 10)
|
||||
ScriptFrequency = 10;
|
||||
if (ScriptFrequency > 300)
|
||||
ScriptFrequency = 300;
|
||||
|
||||
EnchantInterface.load();
|
||||
CustomItems.load();
|
||||
|
||||
|
||||
Reference in new issue
Block a user