浏览代码

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

正在加载...
取消
保存