mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 04:35:03 +00:00
Automatic Legacy Config Converter
This commit is contained in:
1 parent
0db7ef8e66
commit
bc6cc35fd6
8 files changed
+487
-116
No files matched your search
@@ -1,6 +1,8 @@
|
||||
package noppes.npcs.config;
|
||||
|
||||
import noppes.npcs.CustomNpcs;
|
||||
import noppes.npcs.config.legacy.ConfigProp;
|
||||
import noppes.npcs.config.legacy.LegacyConfig;
|
||||
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.File;
|
||||
@@ -17,13 +19,6 @@ public class LoadConfiguration {
|
||||
|
||||
public static void init(String configpath)
|
||||
{
|
||||
if(!dir.exists())
|
||||
dir.mkdir();
|
||||
this.dir = dir;
|
||||
configClass = clss;
|
||||
configFields = new LinkedList<Field>();
|
||||
this.fileName = fileName+".cfg";
|
||||
|
||||
mainConfigFile = new File(configpath + "main.cfg");
|
||||
clientConfigFile = new File(configpath + "client.cfg");
|
||||
scriptConfigFile = new File(configpath + "script.cfg");
|
||||
|
||||
Reference in new issue
Block a user