Sfoglia il codice sorgente

I should really focus more...

and not do theses kind of stupidities... again.
master
Ad5001 2 anni fa
parent
commit
4a989844ca
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      src/Ad5001/PlayerSelectors/selector/ClosestPlayer.php

+ 2
- 2
src/Ad5001/PlayerSelectors/selector/ClosestPlayer.php Vedi File

@@ -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…
Annulla
Salva