Merge commit '409c8c170'

# Conflicts:
#	resources/vanilla
This commit is contained in:
Dylan K. Taylor 2020-06-13 11:57:58 +01:00
commit 5a8633f6c0

View File

@ -163,7 +163,8 @@ class TimingsCommand extends VanillaCommand{
$sender->getServer()->getLogger()->logException($result); $sender->getServer()->getLogger()->logException($result);
return; return;
} }
if(isset($result[0]) && is_array($response = json_decode($result[0], true)) && isset($response["id"])){ $response = json_decode($result[0], true);
if(is_array($response) && isset($response["id"])){
Command::broadcastCommandMessage($sender, new TranslationContainer("pocketmine.command.timings.timingsRead", Command::broadcastCommandMessage($sender, new TranslationContainer("pocketmine.command.timings.timingsRead",
["https://" . $this->host . "/?id=" . $response["id"]])); ["https://" . $this->host . "/?id=" . $response["id"]]));
}else{ }else{