From 554816b8b636de46e56cdc5410d52b4fae995642 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 7 Mar 2017 09:24:32 +0000 Subject: [PATCH] Added configuration option to pocketmine.yml to allow changing timings host, added new host mcpetimings.com --- src/pocketmine/command/defaults/TimingsCommand.php | 2 +- src/pocketmine/resources/pocketmine.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pocketmine/command/defaults/TimingsCommand.php b/src/pocketmine/command/defaults/TimingsCommand.php index 718d887c3..4c59b5522 100644 --- a/src/pocketmine/command/defaults/TimingsCommand.php +++ b/src/pocketmine/command/defaults/TimingsCommand.php @@ -132,7 +132,7 @@ class TimingsCommand extends VanillaCommand{ $sender->sendMessage(new TranslationContainer("pocketmine.command.timings.timingsUpload", ["http://paste.ubuntu.com/" . $matches[1] . "/"])); - $sender->sendMessage(new TranslationContainer("pocketmine.command.timings.timingsRead", ["http://timings.aikar.co/?url=" . $matches[1]])); + $sender->sendMessage(new TranslationContainer("pocketmine.command.timings.timingsRead", ["http://" . $sender->getServer()->getProperty("timings.host", "mcpetimings.com") . "/?url=" . $matches[1]])); fclose($fileTimings); }else{ fclose($fileTimings); diff --git a/src/pocketmine/resources/pocketmine.yml b/src/pocketmine/resources/pocketmine.yml index 3adaaa1ff..9b8df9222 100644 --- a/src/pocketmine/resources/pocketmine.yml +++ b/src/pocketmine/resources/pocketmine.yml @@ -181,6 +181,10 @@ auto-updater: suggest-channels: true host: www.pocketmine.net +timings: + #Choose the host to use for viewing your timings results. + host: mcpetimings.com + aliases: #Examples: #showtheversion: version