Please people, report to Spigot, not me

This commit is contained in:
md_5 2013-02-07 20:23:31 +11:00
parent 9a4bc05358
commit a1e8ebf5b9

View file

@ -1458,7 +1458,7 @@ index 0000000..392155e
+ public void uncaughtException(Thread t, Throwable e) { + public void uncaughtException(Thread t, Throwable e) {
+ Logger log = ((CraftServer) Bukkit.getServer()).getLogger(); + Logger log = ((CraftServer) Bukkit.getServer()).getLogger();
+ log.log(Level.SEVERE, "The server has crashed!"); + log.log(Level.SEVERE, "The server has crashed!");
+ log.log(Level.SEVERE, "Please report this to md_5!"); + log.log(Level.SEVERE, "Please report this to http://www.spigotmc.org/!");
+ log.log(Level.SEVERE, "Begin Exception Trace:"); + log.log(Level.SEVERE, "Begin Exception Trace:");
+ log.log(Level.SEVERE, ""); + log.log(Level.SEVERE, "");
+ StackTraceElement[] stack = e.getStackTrace(); + StackTraceElement[] stack = e.getStackTrace();
@ -1492,7 +1492,7 @@ index 0000000..1d0e284
+ for (String message : messages) { + for (String message : messages) {
+ Bukkit.getLogger().severe(message); + Bukkit.getLogger().severe(message);
+ } + }
+ Bukkit.getLogger().severe("Spigot recommends you report this to md_5"); + Bukkit.getLogger().severe("Spigot recommends you report this to http://www.spigotmc.org/");
+ Bukkit.getLogger().severe(""); + Bukkit.getLogger().severe("");
+ Bukkit.getLogger().severe("Spigot version: " + Bukkit.getBukkitVersion()); + Bukkit.getLogger().severe("Spigot version: " + Bukkit.getBukkitVersion());
+ Bukkit.getLogger().severe("Exception Trace Begins:"); + Bukkit.getLogger().severe("Exception Trace Begins:");
@ -2236,7 +2236,7 @@ index 0000000..9e92ea2
+ if (System.currentTimeMillis() > (lastTick.get() + timeoutTime)) { + if (System.currentTimeMillis() > (lastTick.get() + timeoutTime)) {
+ Logger log = ((CraftServer) Bukkit.getServer()).getLogger(); + Logger log = ((CraftServer) Bukkit.getServer()).getLogger();
+ log.log(Level.SEVERE, "The server has stopped responding!"); + log.log(Level.SEVERE, "The server has stopped responding!");
+ log.log(Level.SEVERE, "Please report this to md_5!"); + log.log(Level.SEVERE, "Please report this to http://www.spigotmc.org/!");
+ log.log(Level.SEVERE, "Spigot version: " + Bukkit.getBukkitVersion()); + log.log(Level.SEVERE, "Spigot version: " + Bukkit.getBukkitVersion());
+ log.log(Level.SEVERE, "Begin Exception Trace For All Threads:"); + log.log(Level.SEVERE, "Begin Exception Trace For All Threads:");
+ Map<Thread, StackTraceElement[]> traces = Thread.getAllStackTraces(); + Map<Thread, StackTraceElement[]> traces = Thread.getAllStackTraces();