forked from Ad5001/PlayerSelectors
I should really focus more...
and not do theses kind of stupidities... again.
This commit is contained in:
parent
5e42ed41c4
commit
4a989844ca
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ class ClosestPlayer extends Selector{
|
|||
// Console
|
||||
if(!($sender instanceof Player)) {
|
||||
if(count($online) > 0){
|
||||
return [$online[array_keys($online)[0]]];
|
||||
return [$online[array_keys($online)[0]]->getName()];
|
||||
} else {
|
||||
return [$sender->getName()];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue