Fairly interesting... Fixing #2
This commit is contained in:
parent
6a5ddcd42d
commit
5e42ed41c4
1 changed files with 1 additions and 1 deletions
|
@ -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[0]];
|
return [$online[array_keys($online)[0]]];
|
||||||
} else {
|
} else {
|
||||||
return [$sender->getName()];
|
return [$sender->getName()];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue