File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/main/java/top/mpt/huihui/answerit/commands/impl Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 55import org .bukkit .Bukkit ;
66import org .bukkit .command .CommandSender ;
77import org .bukkit .entity .Player ;
8+ import top .mpt .huihui .answerit .Main ;
89import top .mpt .huihui .answerit .commands .ICommand ;
910import top .mpt .huihui .answerit .prize .prize ;
1011import top .mpt .huihui .answerit .utils .ChatUtils ;
1314
1415import static top .mpt .huihui .answerit .Main .*;
1516
16- import java .util .ArrayList ;
1717import java .util .List ;
1818import 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 ;
You can’t perform that action at this time.
0 commit comments