Browse Source

I should really focus more...

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

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