Pārlūkot izejas kodu

I should really focus more...

and not do theses kind of stupidities... again.
master
Ad5001 pirms 2 gadiem
vecāks
revīzija
4a989844ca
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 2
- 2
src/Ad5001/PlayerSelectors/selector/ClosestPlayer.php Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt