2020-07-17 18:05:50 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2020-02-26 18:37:58 +01:00
|
|
|
From: tr7zw <tr7zw@live.de>
|
|
|
|
Date: Wed, 26 Feb 2020 18:37:34 +0100
|
|
|
|
Subject: [PATCH] Brandings
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/com/destroystokyo/paper/console/PaperConsole.java b/src/main/java/com/destroystokyo/paper/console/PaperConsole.java
|
2020-08-01 18:14:57 +02:00
|
|
|
index 74ed02fa9296583977bb721014b10ff8b708b43c..a13c7b2b5bc79ecaea404779149ed02c4600a61b 100644
|
2020-02-26 18:37:58 +01:00
|
|
|
--- a/src/main/java/com/destroystokyo/paper/console/PaperConsole.java
|
|
|
|
+++ b/src/main/java/com/destroystokyo/paper/console/PaperConsole.java
|
2020-03-21 17:29:35 +01:00
|
|
|
@@ -18,6 +18,7 @@ public final class PaperConsole extends SimpleTerminalConsole {
|
2020-02-26 18:37:58 +01:00
|
|
|
protected LineReader buildReader(LineReaderBuilder builder) {
|
|
|
|
return super.buildReader(builder
|
2020-03-21 17:29:35 +01:00
|
|
|
.appName("Paper")
|
2020-08-01 18:14:57 +02:00
|
|
|
+ .appName("Yatopia") // Yatopia
|
2020-06-21 00:40:04 +02:00
|
|
|
.variable(LineReader.HISTORY_FILE, java.nio.file.Paths.get(".console_history"))
|
2020-02-26 18:37:58 +01:00
|
|
|
.completer(new ConsoleCommandCompleter(this.server))
|
|
|
|
);
|
2020-08-03 18:48:42 +02:00
|
|
|
diff --git a/src/main/java/dev/tr7zw/yatopia/YatopiaVersionFetcher.java b/src/main/java/dev/tr7zw/yatopia/YatopiaVersionFetcher.java
|
2020-02-26 18:37:58 +01:00
|
|
|
new file mode 100644
|
2020-08-03 18:48:42 +02:00
|
|
|
index 0000000000000000000000000000000000000000..523e3b50d535e91afe8b14fdb53966da030963dc
|
2020-02-26 18:37:58 +01:00
|
|
|
--- /dev/null
|
2020-08-03 18:48:42 +02:00
|
|
|
+++ b/src/main/java/dev/tr7zw/yatopia/YatopiaVersionFetcher.java
|
2020-02-26 18:37:58 +01:00
|
|
|
@@ -0,0 +1,20 @@
|
2020-08-03 18:48:42 +02:00
|
|
|
+package dev.tr7zw.yatopia;
|
2020-02-26 18:37:58 +01:00
|
|
|
+
|
|
|
|
+import javax.annotation.Nonnull;
|
|
|
|
+
|
|
|
|
+import com.destroystokyo.paper.util.VersionFetcher;
|
|
|
|
+
|
2020-08-03 18:48:42 +02:00
|
|
|
+public class YatopiaVersionFetcher implements VersionFetcher {
|
2020-02-26 18:37:58 +01:00
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public long getCacheTime() {
|
|
|
|
+ return Long.MAX_VALUE;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Nonnull
|
|
|
|
+ @Override
|
|
|
|
+ public String getVersionMessage(@Nonnull String serverVersion) {
|
|
|
|
+ return "\u00AF\\_(\u30C4)_/\u00AF";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|
2020-03-21 17:29:35 +01:00
|
|
|
\ No newline at end of file
|
2020-02-26 18:37:58 +01:00
|
|
|
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
|
2020-08-03 18:48:42 +02:00
|
|
|
index e17119d37577de42f8d52afcfdfee64c33996941..7cc402a4dfaa2a4bb123c897b05c09190cbdd489 100644
|
2020-02-26 18:37:58 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
2020-08-03 18:48:42 +02:00
|
|
|
@@ -1515,7 +1515,7 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
|
2020-02-26 18:37:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getServerModName() {
|
2020-03-21 17:29:35 +01:00
|
|
|
- return "Tuinity"; // Tuinity //Paper - Paper > // Spigot - Spigot > // CraftBukkit - cb > vanilla!
|
2020-08-01 18:14:57 +02:00
|
|
|
+ return "Yatopia"; // Yatopia // Tuinity //Paper - Paper > // Spigot - Spigot > // CraftBukkit - cb > vanilla!
|
2020-02-26 18:37:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public CrashReport b(CrashReport crashreport) {
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2020-08-03 21:25:54 +02:00
|
|
|
index b06f72228df2bd047e378ba750936a1138e72ade..e9b5140dbac0516c8900f32d686bb812c11562aa 100644
|
2020-02-26 18:37:58 +01:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2020-08-03 18:48:42 +02:00
|
|
|
@@ -217,7 +217,7 @@ import javax.annotation.Nullable; // Paper
|
2020-02-26 18:37:58 +01:00
|
|
|
import javax.annotation.Nonnull; // Paper
|
|
|
|
|
|
|
|
public final class CraftServer implements Server {
|
2020-03-21 17:30:03 +01:00
|
|
|
- private final String serverName = "Tuinity"; // Paper // Tuinity
|
2020-08-01 18:14:57 +02:00
|
|
|
+ private final String serverName = "Yatopia"; // Paper // Tuinity // Yatopia
|
2020-02-26 18:37:58 +01:00
|
|
|
private final String serverVersion;
|
|
|
|
private final String bukkitVersion = Versioning.getBukkitVersion();
|
|
|
|
private final Logger logger = Logger.getLogger("Minecraft");
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
2020-08-03 18:48:42 +02:00
|
|
|
index 90c1067ca23e566a96d71e06c273d44397928b64..60604e44911d4eb1b67f4a68f8ddad03bcaff95f 100644
|
2020-02-26 18:37:58 +01:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
2020-07-29 14:30:48 +02:00
|
|
|
@@ -326,7 +326,7 @@ public final class CraftMagicNumbers implements UnsafeValues {
|
2020-02-26 18:37:58 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public com.destroystokyo.paper.util.VersionFetcher getVersionFetcher() {
|
|
|
|
- return new com.destroystokyo.paper.PaperVersionFetcher();
|
2020-08-03 18:48:42 +02:00
|
|
|
+ return new dev.tr7zw.yatopia.YatopiaVersionFetcher(); //Yatopia
|
2020-02-26 18:37:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2020-03-08 15:59:59 +01:00
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/util/Versioning.java b/src/main/java/org/bukkit/craftbukkit/util/Versioning.java
|
2020-08-03 18:48:42 +02:00
|
|
|
index 001b1e5197eaa51bfff9031aa6c69876c9a47960..2e6cd1780d759a9f94dc4d740fa1b81faad2a1ee 100644
|
2020-03-08 15:59:59 +01:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/util/Versioning.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/util/Versioning.java
|
|
|
|
@@ -11,7 +11,7 @@ public final class Versioning {
|
|
|
|
public static String getBukkitVersion() {
|
|
|
|
String result = "Unknown-Version";
|
|
|
|
|
2020-03-21 17:30:03 +01:00
|
|
|
- InputStream stream = Bukkit.class.getClassLoader().getResourceAsStream("META-INF/maven/com.tuinity/tuinity-api/pom.properties"); // Tuinity
|
2020-08-03 18:48:42 +02:00
|
|
|
+ InputStream stream = Bukkit.class.getClassLoader().getResourceAsStream("META-INF/maven/dev.tr7zw.yatopia/yatopia-api/pom.properties"); // Yatopia
|
2020-03-08 15:59:59 +01:00
|
|
|
Properties properties = new Properties();
|
|
|
|
|
|
|
|
if (stream != null) {
|