2018-07-26 01:05:07 +02:00
From 7cd9445ab28c3f5c5ce2ca674af31de0a2d1faa1 Mon Sep 17 00:00:00 2001
2015-01-29 22:25:50 +01:00
From: Zach Brown <zach.brown@destroystokyo.com>
2016-03-01 00:09:49 +01:00
Date: Tue, 1 Mar 2016 14:32:43 -0600
Subject: [PATCH] Show 'Paper' in client crashes, server lists, and Mojang
stats
2014-08-19 21:26:33 +02:00
2016-03-16 08:57:49 +01:00
diff --git a/src/main/java/net/minecraft/server/EULA.java b/src/main/java/net/minecraft/server/EULA.java
2018-07-26 01:05:07 +02:00
index 220ca7bca0..eb4b08be46 100644
2016-03-16 08:57:49 +01:00
--- a/src/main/java/net/minecraft/server/EULA.java
+++ b/src/main/java/net/minecraft/server/EULA.java
2018-07-15 03:53:17 +02:00
@@ -52,13 +52,12 @@ public class EULA {
2016-03-16 08:57:49 +01:00
2018-07-15 03:53:17 +02:00
fileoutputstream = new FileOutputStream(this.b);
properties.setProperty("eula", "false");
- properties.store(fileoutputstream, "By changing the setting below to TRUE you are indicating your agreement to our EULA (https://account.mojang.com/documents/minecraft_eula).");
+ properties.store(fileoutputstream, "By changing the setting below to TRUE you are indicating your agreement to our EULA (https://account.mojang.com/documents/minecraft_eula).\nYou also agree that tacos are tasty, and the best food in the world."); // Paper - fix lag);
} catch (Exception exception) {
EULA.a.warn("Failed to save {}", this.b, exception);
} finally {
IOUtils.closeQuietly(fileoutputstream);
}
-
}
}
}
2014-08-19 21:26:33 +02:00
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
2018-07-26 01:05:07 +02:00
index 1839bf7d24..5d5aa72ca2 100644
2014-08-19 21:26:33 +02:00
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
2018-07-22 07:27:46 +02:00
@@ -1205,7 +1205,7 @@ public abstract class MinecraftServer implements IAsyncTaskHandler, IMojangStati
2014-08-19 21:26:33 +02:00
}
public String getServerModName() {
- return "Spigot"; // Spigot - Spigot > // CraftBukkit - cb > vanilla!
2016-03-01 00:09:49 +01:00
+ return "Paper"; //Paper - Paper > // Spigot - Spigot > // CraftBukkit - cb > vanilla!
2014-08-19 21:26:33 +02:00
}
public CrashReport b(CrashReport crashreport) {
2016-03-01 00:09:49 +01:00
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
2018-07-26 01:05:07 +02:00
index 737ad3e1c0..0dda989453 100644
2016-03-01 00:09:49 +01:00
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
2018-07-26 01:05:07 +02:00
@@ -153,7 +153,7 @@ import org.bukkit.event.server.TabCompleteEvent;
2017-12-28 05:45:33 +01:00
import net.md_5.bungee.api.chat.BaseComponent;
2016-03-01 00:09:49 +01:00
public final class CraftServer implements Server {
- private final String serverName = "CraftBukkit";
2018-07-15 03:53:17 +02:00
+ private final String serverName = "Paper"; // Paper
2016-03-01 00:09:49 +01:00
private final String serverVersion;
private final String bukkitVersion = Versioning.getBukkitVersion();
private final Logger logger = Logger.getLogger("Minecraft");
2017-05-27 05:46:27 +02:00
diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java
2018-07-26 01:05:07 +02:00
index 57da619d80..38e696aa94 100644
2017-05-27 05:46:27 +02:00
--- a/src/main/java/org/bukkit/craftbukkit/Main.java
+++ b/src/main/java/org/bukkit/craftbukkit/Main.java
2018-07-22 07:27:46 +02:00
@@ -200,7 +200,7 @@ public class Main {
2018-07-15 03:53:17 +02:00
deadline.add(Calendar.DAY_OF_YEAR, -3);
2017-05-27 05:46:27 +02:00
if (buildDate.before(deadline.getTime())) {
System.err.println("*** Error, this build is outdated ***");
- System.err.println("*** Please download a new build as per instructions from https://www.spigotmc.org/ ***");
+ System.err.println("*** Please download a new build as per instructions from https://paperci.emc.gs/ ***"); // Paper
System.err.println("*** Server will start in 15 seconds ***");
Thread.sleep(TimeUnit.SECONDS.toMillis(15));
}
2015-10-17 04:50:04 +02:00
diff --git a/src/main/java/org/spigotmc/WatchdogThread.java b/src/main/java/org/spigotmc/WatchdogThread.java
2018-07-26 01:05:07 +02:00
index 94a3d4237d..91b8aa6a16 100644
2015-10-17 04:50:04 +02:00
--- a/src/main/java/org/spigotmc/WatchdogThread.java
+++ b/src/main/java/org/spigotmc/WatchdogThread.java
2016-05-13 06:04:49 +02:00
@@ -19,7 +19,7 @@ public class WatchdogThread extends Thread
2015-10-17 04:50:04 +02:00
private WatchdogThread(long timeoutTime, boolean restart)
{
- super( "Spigot Watchdog Thread" );
2016-03-01 00:09:49 +01:00
+ super( "Paper Watchdog Thread" );
2015-10-17 04:50:04 +02:00
this.timeoutTime = timeoutTime;
this.restart = restart;
}
2016-05-06 03:10:32 +02:00
@@ -56,9 +56,9 @@ public class WatchdogThread extends Thread
2015-10-17 04:50:04 +02:00
{
Logger log = Bukkit.getServer().getLogger();
log.log( Level.SEVERE, "The server has stopped responding!" );
- log.log( Level.SEVERE, "Please report this to http://www.spigotmc.org/" );
2018-06-05 02:48:14 +02:00
+ log.log( Level.SEVERE, "Please report this to https://github.com/PaperMC/Paper/issues" );
2015-10-17 04:50:04 +02:00
log.log( Level.SEVERE, "Be sure to include ALL relevant console errors and Minecraft crash reports" );
- log.log( Level.SEVERE, "Spigot version: " + Bukkit.getServer().getVersion() );
2016-03-01 00:09:49 +01:00
+ log.log( Level.SEVERE, "Paper version: " + Bukkit.getServer().getVersion() );
2015-10-17 04:50:04 +02:00
//
if(net.minecraft.server.World.haveWeSilencedAPhysicsCrash)
{
@@ -68,7 +68,7 @@ public class WatchdogThread extends Thread
}
//
log.log( Level.SEVERE, "------------------------------" );
- log.log( Level.SEVERE, "Server thread dump (Look for plugins here before reporting to Spigot!):" );
2016-03-01 00:09:49 +01:00
+ log.log( Level.SEVERE, "Server thread dump (Look for plugins here before reporting to Paper!):" );
2015-10-17 04:50:04 +02:00
dumpThread( ManagementFactory.getThreadMXBean().getThreadInfo( MinecraftServer.getServer().primaryThread.getId(), Integer.MAX_VALUE ), log );
log.log( Level.SEVERE, "------------------------------" );
//
2014-08-19 21:26:33 +02:00
--
2018-07-04 09:55:24 +02:00
2.18.0
2014-08-19 21:26:33 +02:00