mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 15:45:10 +00:00
Individualized Player Scripts Config
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user