Skip to content

Commit 73ddc45

Browse files
Bug Fix
1 parent 7d8bbaf commit 73ddc45

File tree

1 file changed

+2
-4
lines changed
  • src/main/java/top/mpt/huihui/answerit/commands/impl

1 file changed

+2
-4
lines changed

src/main/java/top/mpt/huihui/answerit/commands/impl/q.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.bukkit.Bukkit;
66
import org.bukkit.command.CommandSender;
77
import org.bukkit.entity.Player;
8+
import top.mpt.huihui.answerit.Main;
89
import top.mpt.huihui.answerit.commands.ICommand;
910
import top.mpt.huihui.answerit.prize.prize;
1011
import top.mpt.huihui.answerit.utils.ChatUtils;
@@ -13,7 +14,6 @@
1314

1415
import static top.mpt.huihui.answerit.Main.*;
1516

16-
import java.util.ArrayList;
1717
import java.util.List;
1818
import java.util.Objects;
1919

@@ -22,9 +22,7 @@ public class q extends ICommand {
2222
public q() {
2323
super("q", "", "/answer q [PlayerName] [Question] [select/wrtite] [answer] [answer] *n");
2424
// 传入服务器全体玩家List
25-
List<String> params = new ArrayList<>();
26-
Bukkit.getOnlinePlayers().forEach( it -> params.add(it.getName()) );
27-
setListParams(params);
25+
setListParams(Online_Players);
2826
}
2927

3028
public static Player target = null;

0 commit comments

Comments
 (0)