From dc3ae42b52589f16ca7583895fa45d12e635d1e2 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Mon, 28 Jul 2014 03:29:08 -0500 Subject: [PATCH] Stop using spigotmc.org as a redirect for timings --- ...p-using-spigot-s-website-for-timings.patch | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Spigot-API-Patches/0003-Stop-using-spigot-s-website-for-timings.patch diff --git a/Spigot-API-Patches/0003-Stop-using-spigot-s-website-for-timings.patch b/Spigot-API-Patches/0003-Stop-using-spigot-s-website-for-timings.patch new file mode 100644 index 0000000000..462fbfb6ec --- /dev/null +++ b/Spigot-API-Patches/0003-Stop-using-spigot-s-website-for-timings.patch @@ -0,0 +1,32 @@ +From be2044b8ee40fa5f69689f00f61a6345d13afbc0 Mon Sep 17 00:00:00 2001 +From: Zach Brown +Date: Mon, 28 Jul 2014 03:26:50 -0500 +Subject: [PATCH] Stop using spigot's website for timings + +There's no reason to do so at all, the fact that it just exists as a redirect is both odd and unnecessary + +diff --git a/src/main/java/org/bukkit/command/defaults/TimingsCommand.java b/src/main/java/org/bukkit/command/defaults/TimingsCommand.java +index 22926d6..77e846e 100644 +--- a/src/main/java/org/bukkit/command/defaults/TimingsCommand.java ++++ b/src/main/java/org/bukkit/command/defaults/TimingsCommand.java +@@ -90,7 +90,7 @@ public class TimingsCommand extends BukkitCommand { + } + + sender.sendMessage("Timings written to " + timings.getPath()); +- sender.sendMessage( "Paste contents of file into form at http://www.spigotmc.org/go/timings to read results." ); ++ sender.sendMessage( "Paste contents of file into form at http://aikar.co/timings.php to read results." ); + + } catch (IOException e) { + } finally { +@@ -234,7 +234,7 @@ public class TimingsCommand extends BukkitCommand { + + String location = con.getHeaderField( "Location" ); + String pasteID = location.substring( "http://paste.ubuntu.com/".length(), location.length() - 1 ); +- sender.sendMessage( ChatColor.GREEN + "View timings results can be viewed at http://www.spigotmc.org/go/timings?url=" + pasteID ); ++ sender.sendMessage( ChatColor.GREEN + "View timings results can be viewed at http://aikar.co/timings.php?url=" + pasteID ); + } catch ( IOException ex ) + { + sender.sendMessage( ChatColor.RED + "Error pasting timings, check your console for more information" ); +-- +1.9.1 +