mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 12:27:51 +00:00
TimingsCommand: fix missing type information for async task local storage
This commit is contained in:
parent
c3fabe833e
commit
376926c700
@ -151,6 +151,7 @@ class TimingsCommand extends VanillaCommand{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function onCompletion(Server $server){
|
public function onCompletion(Server $server){
|
||||||
|
/** @var CommandSender $sender */
|
||||||
$sender = $this->fetchLocal();
|
$sender = $this->fetchLocal();
|
||||||
if($sender instanceof Player and !$sender->isOnline()){ // TODO replace with a more generic API method for checking availability of CommandSender
|
if($sender instanceof Player and !$sender->isOnline()){ // TODO replace with a more generic API method for checking availability of CommandSender
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user