Explorar el Código

I should really focus more...

and not do theses kind of stupidities... again.
master
Ad5001 hace 2 años
padre
commit
4a989844ca
No account linked to committer's email address
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/Ad5001/PlayerSelectors/selector/ClosestPlayer.php

+ 2
- 2
src/Ad5001/PlayerSelectors/selector/ClosestPlayer.php Ver fichero

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

Cargando…
Cancelar
Guardar