author changed
This commit is contained in:
@@ -9,7 +9,12 @@ public static List<string> FindAllFiles(string directoryPath)
|
||||
var replacements = new[]
|
||||
{
|
||||
//ORDER MATTERS
|
||||
new { Old = "JavaJumper", New = "CoolDev" } //change mod init class and other places where mod name is in PascalCase
|
||||
new { Old = "com.example.template", New = "io.github.cooldev.coolmod" }, //change mod package
|
||||
new { Old = "template", New = "coolmod" }, //change modid
|
||||
new { Old = "Template", New = "Cool Mod" }, //change mod display name
|
||||
// ↕ <- Letter L is different case here
|
||||
new { Old = "TempLate", New = "CoolMod" } //change mod init class and other places where mod name is in PascalCase
|
||||
new { Old = "AuthorExample", New = "CoolDev" }
|
||||
};
|
||||
|
||||
var files = FindAllFiles(Directory.GetCurrentDirectory());
|
||||
@@ -41,6 +46,8 @@ foreach(var file in files)
|
||||
}
|
||||
Console.WriteLine($"Moving \n\t< {oldFile} \n\t> {newFile}");
|
||||
File.Delete(oldFile);
|
||||
try{
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(newFile));
|
||||
}catch{};
|
||||
File.WriteAllText(newFile,fileContent);
|
||||
}
|
||||
@@ -1,13 +1,13 @@
|
||||
modLoader = "javafml"
|
||||
loaderVersion = "*"
|
||||
license = "LGPLv3"
|
||||
issueTrackerURL="https://JavaJumper/TempLate/issues"
|
||||
issueTrackerURL="https://AuthorExample/TempLate/issues"
|
||||
|
||||
[[mods]]
|
||||
modId = "template"
|
||||
version = "${version}"
|
||||
displayName = "${name}"
|
||||
authors = "JavaJumper"
|
||||
authors = "AuthorExample"
|
||||
description = ""
|
||||
logoFile = "assets/template/icon.png"
|
||||
logoBlur = false
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
modLoader = "javafml"
|
||||
loaderVersion = "*"
|
||||
license = "LGPLv3"
|
||||
issueTrackerURL="https://JavaJumper/TempLate/issues"
|
||||
issueTrackerURL="https://AuthorExample/TempLate/issues"
|
||||
|
||||
[[mods]]
|
||||
modId = "template"
|
||||
version = "${version}"
|
||||
displayName = "${name}"
|
||||
authors = "JavaJumper"
|
||||
authors = "AuthorExample"
|
||||
description = ""
|
||||
logoFile = "assets/template/icon.png"
|
||||
logoBlur = false
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"name": "${name}",
|
||||
"description": "",
|
||||
"authors": [
|
||||
"JavaJumper"
|
||||
"AuthorExample"
|
||||
],
|
||||
"contact": {
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user