Przeglądaj źródła

I should really focus more...

and not do theses kind of stupidities... again.
master
Ad5001 2 lat temu
rodzic
commit
4a989844ca
No account linked to committer's email address

+ 2
- 2
src/Ad5001/PlayerSelectors/selector/ClosestPlayer.php Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz