Bladeren bron

I should really focus more...

and not do theses kind of stupidities... again.
master
Ad5001 2 jaren geleden
bovenliggende
commit
4a989844ca
No account linked to committer's email address
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2
    2
      src/Ad5001/PlayerSelectors/selector/ClosestPlayer.php

+ 2
- 2
src/Ad5001/PlayerSelectors/selector/ClosestPlayer.php Bestand weergeven

@@ -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()];
}
}
}
}

Laden…
Annuleren
Opslaan