I should really focus more...

and not do theses kind of stupidities... again.
This commit is contained in:
Adsooi 2017-11-11 16:02:52 +01:00 committed by GitHub
parent 5e42ed41c4
commit 4a989844ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ class ClosestPlayer extends Selector{
// Console // Console
if(!($sender instanceof Player)) { if(!($sender instanceof Player)) {
if(count($online) > 0){ if(count($online) > 0){
return [$online[array_keys($online)[0]]]; return [$online[array_keys($online)[0]]->getName()];
} else { } else {
return [$sender->getName()]; return [$sender->getName()];
} }