Commit 7af4949 1 parent 825ae20 commit 7af4949 Copy full SHA for 7af4949
File tree 1 file changed +16
-17
lines changed
plumbot-bukkit/src/main/java/me/regadpole/plumbot/event/qq
1 file changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -194,23 +194,6 @@ public void onGroupMessageReceive(GroupMessage e){
194
194
}
195
195
}
196
196
197
- pattern = Pattern .compile (Prefix +".*" );
198
- matcher = pattern .matcher (msg );
199
- if (matcher .find ()){
200
- if (!Config .SDC ()){
201
- return ;
202
- }
203
- String scmd = matcher .group ().replace (Prefix +"" , "" );
204
- String gcmd = Config .getCommandsYaml ().getString ("Admin." +scmd );
205
- if (gcmd !=null ) {
206
- PlumBot .getScheduler ().runTaskAsynchronously (()->{
207
- String sendCqMsg = ServerManager .sendCmd (gcmd , true );
208
- bot .sendCQMsg (true , sendCqMsg , groupID );
209
- });
210
- return ;
211
- }
212
- }
213
-
214
197
pattern = Pattern .compile (Prefix + "查询白名单 .*" );
215
198
matcher = pattern .matcher (msg );
216
199
if (matcher .find ()) {
@@ -256,6 +239,22 @@ public void onGroupMessageReceive(GroupMessage e){
256
239
return ;
257
240
}
258
241
242
+ pattern = Pattern .compile (Prefix +".*" );
243
+ matcher = pattern .matcher (msg );
244
+ if (matcher .find ()){
245
+ if (!Config .SDC ()){
246
+ return ;
247
+ }
248
+ String scmd = matcher .group ().replace (Prefix +"" , "" );
249
+ String gcmd = Config .getCommandsYaml ().getString ("Admin." +scmd );
250
+ if (gcmd !=null ) {
251
+ PlumBot .getScheduler ().runTaskAsynchronously (()->{
252
+ String sendCqMsg = ServerManager .sendCmd (gcmd , true );
253
+ bot .sendCQMsg (true , sendCqMsg , groupID );
254
+ });
255
+ return ;
256
+ }
257
+ }
259
258
}
260
259
261
260
if (msg .equals (Prefix +"帮助" )) {
You can’t perform that action at this time.
0 commit comments