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 5
5
import org .bukkit .Bukkit ;
6
6
import org .bukkit .command .CommandSender ;
7
7
import org .bukkit .entity .Player ;
8
+ import top .mpt .huihui .answerit .Main ;
8
9
import top .mpt .huihui .answerit .commands .ICommand ;
9
10
import top .mpt .huihui .answerit .prize .prize ;
10
11
import top .mpt .huihui .answerit .utils .ChatUtils ;
13
14
14
15
import static top .mpt .huihui .answerit .Main .*;
15
16
16
- import java .util .ArrayList ;
17
17
import java .util .List ;
18
18
import java .util .Objects ;
19
19
@@ -22,9 +22,7 @@ public class q extends ICommand {
22
22
public q () {
23
23
super ("q" , "" , "/answer q [PlayerName] [Question] [select/wrtite] [answer] [answer] *n" );
24
24
// 传入服务器全体玩家List
25
- List <String > params = new ArrayList <>();
26
- Bukkit .getOnlinePlayers ().forEach ( it -> params .add (it .getName ()) );
27
- setListParams (params );
25
+ setListParams (Online_Players );
28
26
}
29
27
30
28
public static Player target = null ;
You can’t perform that action at this time.
0 commit comments