author changed
This commit is contained in:
@@ -8,8 +8,13 @@ public static List<string> FindAllFiles(string directoryPath)
|
|||||||
|
|
||||||
var replacements = new[]
|
var replacements = new[]
|
||||||
{
|
{
|
||||||
//ORDER MATTERS
|
//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());
|
var files = FindAllFiles(Directory.GetCurrentDirectory());
|
||||||
@@ -41,6 +46,8 @@ foreach(var file in files)
|
|||||||
}
|
}
|
||||||
Console.WriteLine($"Moving \n\t< {oldFile} \n\t> {newFile}");
|
Console.WriteLine($"Moving \n\t< {oldFile} \n\t> {newFile}");
|
||||||
File.Delete(oldFile);
|
File.Delete(oldFile);
|
||||||
Directory.CreateDirectory(Path.GetDirectoryName(newFile));
|
try{
|
||||||
|
Directory.CreateDirectory(Path.GetDirectoryName(newFile));
|
||||||
|
}catch{};
|
||||||
File.WriteAllText(newFile,fileContent);
|
File.WriteAllText(newFile,fileContent);
|
||||||
}
|
}
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
modLoader = "javafml"
|
modLoader = "javafml"
|
||||||
loaderVersion = "*"
|
loaderVersion = "*"
|
||||||
license = "LGPLv3"
|
license = "LGPLv3"
|
||||||
issueTrackerURL="https://JavaJumper/TempLate/issues"
|
issueTrackerURL="https://AuthorExample/TempLate/issues"
|
||||||
|
|
||||||
[[mods]]
|
[[mods]]
|
||||||
modId = "template"
|
modId = "template"
|
||||||
version = "${version}"
|
version = "${version}"
|
||||||
displayName = "${name}"
|
displayName = "${name}"
|
||||||
authors = "JavaJumper"
|
authors = "AuthorExample"
|
||||||
description = ""
|
description = ""
|
||||||
logoFile = "assets/template/icon.png"
|
logoFile = "assets/template/icon.png"
|
||||||
logoBlur = false
|
logoBlur = false
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
modLoader = "javafml"
|
modLoader = "javafml"
|
||||||
loaderVersion = "*"
|
loaderVersion = "*"
|
||||||
license = "LGPLv3"
|
license = "LGPLv3"
|
||||||
issueTrackerURL="https://JavaJumper/TempLate/issues"
|
issueTrackerURL="https://AuthorExample/TempLate/issues"
|
||||||
|
|
||||||
[[mods]]
|
[[mods]]
|
||||||
modId = "template"
|
modId = "template"
|
||||||
version = "${version}"
|
version = "${version}"
|
||||||
displayName = "${name}"
|
displayName = "${name}"
|
||||||
authors = "JavaJumper"
|
authors = "AuthorExample"
|
||||||
description = ""
|
description = ""
|
||||||
logoFile = "assets/template/icon.png"
|
logoFile = "assets/template/icon.png"
|
||||||
logoBlur = false
|
logoBlur = false
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"name": "${name}",
|
"name": "${name}",
|
||||||
"description": "",
|
"description": "",
|
||||||
"authors": [
|
"authors": [
|
||||||
"JavaJumper"
|
"AuthorExample"
|
||||||
],
|
],
|
||||||
"contact": {
|
"contact": {
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user