瀏覽代碼

I should really focus more...

and not do theses kind of stupidities... again.
master
Ad5001 2 年之前
父節點
當前提交
4a989844ca
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/Ad5001/PlayerSelectors/selector/ClosestPlayer.php

+ 2
- 2
src/Ad5001/PlayerSelectors/selector/ClosestPlayer.php 查看文件

@@ -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…
取消
儲存