Browse Source

Fairly interesting... Fixing #2

master
Ad5001 2 years ago
parent
commit
5e42ed41c4
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/Ad5001/PlayerSelectors/selector/ClosestPlayer.php

+ 1
- 1
src/Ad5001/PlayerSelectors/selector/ClosestPlayer.php View File

@@ -27,7 +27,7 @@ class ClosestPlayer extends Selector{
// Console
if(!($sender instanceof Player)) {
if(count($online) > 0){
return [$online[0]];
return [$online[array_keys($online)[0]]];
} else {
return [$sender->getName()];
}

Loading…
Cancel
Save