Added configuration option to pocketmine.yml to allow changing timings host, added new host mcpetimings.com

This commit is contained in:
Dylan K. Taylor 2017-03-07 09:24:32 +00:00
parent fc5fa01442
commit 554816b8b6
2 changed files with 5 additions and 1 deletions

View File

@ -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.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); fclose($fileTimings);
}else{ }else{
fclose($fileTimings); fclose($fileTimings);

View File

@ -181,6 +181,10 @@ auto-updater:
suggest-channels: true suggest-channels: true
host: www.pocketmine.net host: www.pocketmine.net
timings:
#Choose the host to use for viewing your timings results.
host: mcpetimings.com
aliases: aliases:
#Examples: #Examples:
#showtheversion: version #showtheversion: version