mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-11-22 02:08:27 +01:00
Use the VanillaCord repo for vanilla builds
This commit is contained in:
parent
2cabdf85ab
commit
15713d58b4
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -2,4 +2,4 @@ Manifest-Version: 1.0
|
||||
Class-Path: BungeeCord.jar Waterfall.jar
|
||||
Main-Class: net.ME1312.SubServers.Bungee.Launch
|
||||
Implementation-Title: SubServers.Bungee
|
||||
Specification-Title: 18w23a
|
||||
Specification-Title: 18w25a
|
||||
|
@ -90,13 +90,13 @@ public class InternalSubCreator extends SubCreator {
|
||||
System.out.println(name + File.separator + "Creator > Loading Template: " + template.getDisplayName());
|
||||
Util.copyDirectory(template.getDirectory(), dir);
|
||||
if (template.getType() == ServerType.VANILLA) {
|
||||
String commit;
|
||||
String branch;
|
||||
if (version.compareTo(new Version("1.12")) >= 0) {
|
||||
commit = "6c29bc48854f75fae6e8c16bbbdb47bd53a8e082";
|
||||
branch = "1.12";
|
||||
} else {
|
||||
commit = "339144e5cc406c3bc71aed66b636cbb348932eb0";
|
||||
branch = "1.7.10";
|
||||
}
|
||||
version = new Version(version.toString() + " " + commit);
|
||||
version = new Version(version.toString() + " " + branch);
|
||||
} else if (template.getType() == ServerType.SPONGE) {
|
||||
System.out.println(name + File.separator + "Creator > Searching Versions...");
|
||||
Document spongexml = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new InputSource(new StringReader(Util.readAll(new BufferedReader(new InputStreamReader(new URL("http://files.minecraftforge.net/maven/org/spongepowered/spongeforge/maven-metadata.xml").openStream(), Charset.forName("UTF-8")))))));
|
||||
|
Binary file not shown.
@ -119,7 +119,7 @@ public class Version implements Serializable, Comparable<Version> {
|
||||
* @see #toFullString() <b>#toString()</b> returns a valid string
|
||||
*/
|
||||
public static Version fromString(String string) {
|
||||
Matcher regex = Pattern.compile("(rv|s|(?:p?[abrv])|[u])?([^/]+)", Pattern.CASE_INSENSITIVE).matcher(string);
|
||||
Matcher regex = Pattern.compile("(rv|p?[abrv]|[su])?([^/]+)", Pattern.CASE_INSENSITIVE).matcher(string);
|
||||
Version current = null;
|
||||
while (regex.find()) {
|
||||
try {
|
||||
|
@ -119,7 +119,7 @@ public final class SubPlugin extends BungeeCord implements Listener {
|
||||
Util.unzip(SubPlugin.class.getResourceAsStream("/net/ME1312/SubServers/Bungee/Library/Files/Templates/sponge.zip"), new UniversalFile(dir, "Templates"));
|
||||
System.out.println("SubServers > Created ~/SubServers/Templates/Sponge");
|
||||
} else {
|
||||
if (new UniversalFile(dir, "Templates:Vanilla:template.yml").exists() && (new Version((new YAMLConfig(new UniversalFile(dir, "Templates:Vanilla:template.yml"))).get().getString("Version", "0")).compareTo(new Version("2.13a+"))) != 0) {
|
||||
if (new UniversalFile(dir, "Templates:Vanilla:template.yml").exists() && (new Version((new YAMLConfig(new UniversalFile(dir, "Templates:Vanilla:template.yml"))).get().getString("Version", "0")).compareTo(new Version("2.13b+"))) != 0) {
|
||||
Files.move(new UniversalFile(dir, "Templates:Vanilla").toPath(), new UniversalFile(dir, "Templates:Vanilla.old" + Math.round(Math.random() * 100000)).toPath());
|
||||
Util.unzip(SubPlugin.class.getResourceAsStream("/net/ME1312/SubServers/Bungee/Library/Files/Templates/vanilla.zip"), new UniversalFile(dir, "Templates"));
|
||||
System.out.println("SubServers > Updated ~/SubServers/Templates/Vanilla");
|
||||
|
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
Manifest-Version: 1.0
|
||||
Implementation-Title: SubServers.Client.Bukkit
|
||||
Specification-Title: 18w23a
|
||||
Specification-Title: 18w25a
|
||||
|
@ -119,7 +119,7 @@ public class Version implements Serializable, Comparable<Version> {
|
||||
* @see #toFullString() <b>#toString()</b> returns a valid string
|
||||
*/
|
||||
public static Version fromString(String string) {
|
||||
Matcher regex = Pattern.compile("(rv|s|(?:p?[abrv])|[u])?([^/]+)", Pattern.CASE_INSENSITIVE).matcher(string);
|
||||
Matcher regex = Pattern.compile("(rv|p?[abrv]|[su])?([^/]+)", Pattern.CASE_INSENSITIVE).matcher(string);
|
||||
Version current = null;
|
||||
while (regex.find()) {
|
||||
try {
|
||||
|
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: net.ME1312.SubServers.Host.ExHost
|
||||
Implementation-Title: SubServers.Host
|
||||
Specification-Title: 18w23a
|
||||
Specification-Title: 18w25a
|
||||
|
@ -213,13 +213,13 @@ public class SubCreator {
|
||||
host.subdata.sendPacket(new PacketOutExLogMessage(address, "Loading Template: " + template.getDisplayName()));
|
||||
Util.copyDirectory(template.getDirectory(), dir);
|
||||
if (template.getType() == ServerType.VANILLA) {
|
||||
String commit;
|
||||
String branch;
|
||||
if (version.compareTo(new Version("1.12")) >= 0) {
|
||||
commit = "6c29bc48854f75fae6e8c16bbbdb47bd53a8e082";
|
||||
branch = "1.12";
|
||||
} else {
|
||||
commit = "339144e5cc406c3bc71aed66b636cbb348932eb0";
|
||||
branch = "1.7.10";
|
||||
}
|
||||
version = new Version(version.toString() + " " + commit);
|
||||
version = new Version(version.toString() + " " + branch);
|
||||
} else if (template.getType() == ServerType.SPONGE) {
|
||||
thread.name().logger.info.println("Searching Versions...");
|
||||
host.subdata.sendPacket(new PacketOutExLogMessage(address, "Searching Versions..."));
|
||||
|
@ -119,7 +119,7 @@ public class Version implements Serializable, Comparable<Version> {
|
||||
* @see #toFullString() <b>#toString()</b> returns a valid string
|
||||
*/
|
||||
public static Version fromString(String string) {
|
||||
Matcher regex = Pattern.compile("(rv|s|(?:p?[abrv])|[u])?([^/]+)", Pattern.CASE_INSENSITIVE).matcher(string);
|
||||
Matcher regex = Pattern.compile("(rv|p?[abrv]|[su])?([^/]+)", Pattern.CASE_INSENSITIVE).matcher(string);
|
||||
Version current = null;
|
||||
while (regex.find()) {
|
||||
try {
|
||||
|
Binary file not shown.
@ -2,4 +2,4 @@ Manifest-Version: 1.0
|
||||
Class-Path: BungeeCord.jar Waterfall.jar
|
||||
Main-Class: net.ME1312.SubServers.Sync.Launch
|
||||
Implementation-Title: SubServers.Sync
|
||||
Specification-Title: 18w23a
|
||||
Specification-Title: 18w25a
|
||||
|
@ -119,7 +119,7 @@ public class Version implements Serializable, Comparable<Version> {
|
||||
* @see #toFullString() <b>#toString()</b> returns a valid string
|
||||
*/
|
||||
public static Version fromString(String string) {
|
||||
Matcher regex = Pattern.compile("(rv|s|(?:p?[abrv])|[u])?([^/]+)", Pattern.CASE_INSENSITIVE).matcher(string);
|
||||
Matcher regex = Pattern.compile("(rv|p?[abrv]|[su])?([^/]+)", Pattern.CASE_INSENSITIVE).matcher(string);
|
||||
Version current = null;
|
||||
while (regex.find()) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user