Individualized Player Scripts Config

This commit is contained in:
Kam committed 2025-04-09 01:55:34 -04:00
1 parent e8a3d4f369
commit 4fd0c31bee
19 files changed
+246 -131

No files matched your search

@@ -58,6 +58,8 @@ public class ConfigScript {
public static Property BannedClassesProperty;
public final static HashSet<String> BannedClasses = new HashSet<>();
public static boolean IndividualPlayerScripts = false;
public static void init(File configFile) {
config = new Configuration(configFile);
@@ -109,6 +111,9 @@ public class ConfigScript {
"Classes must be fully written out with library names preceding them.\n" +
"This is a feature ONLY AVAILABLE ON NASHORN.");
IndividualPlayerScripts = config.get(CUSTOMIZATION, "Individual Player Scripts", false, "Acts similar to CNPC 1.12 where Player Scripts like Init are run PER Player").getBoolean(false);
// Convert to Legacy
if (CustomNpcs.legacyExist) {
ScriptingEnabled = LegacyConfig.ScriptingEnabled;