mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 08:56:15 +00:00
TimingsCommand: fix missing type information for async task local storage
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user