TimingsCommand: fix missing type information for async task local storage

This commit is contained in:
Dylan K. Taylor 2020-06-10 12:10:33 +01:00
parent c3fabe833e
commit 376926c700

View File

@ -151,6 +151,7 @@ class TimingsCommand extends VanillaCommand{
}
public function onCompletion(Server $server){
/** @var CommandSender $sender */
$sender = $this->fetchLocal();
if($sender instanceof Player and !$sender->isOnline()){ // TODO replace with a more generic API method for checking availability of CommandSender
return;