I should really focus more...

and not do theses kind of stupidities... again.
pull/5/merge
Ad5001 5 years ago committed by GitHub
parent 5e42ed41c4
commit 4a989844ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Ad5001/PlayerSelectors/selector/ClosestPlayer.php

@ -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()];
}
@ -47,4 +47,4 @@ class ClosestPlayer extends Selector{
return [$sender->getName()];
}
}
}
}

Loading…
Cancel
Save