File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
java/center/xzy/qb/messagesync/events Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import center .xzy .qb .messagesync .Main ;
4
4
import center .xzy .qb .messagesync .scheduler .PlayerLogin ;
5
+ import com .alibaba .fastjson .JSONObject ;
5
6
import org .bukkit .Bukkit ;
6
7
import org .bukkit .ChatColor ;
7
8
import org .bukkit .GameMode ;
@@ -241,7 +242,11 @@ public void sendRequest(String msg){
241
242
return ;
242
243
}
243
244
244
- Main .socket .csend ("server_message" , msg );
245
+ Integer qn = plugin .getConfig ().getInt ("sync-qn" );
246
+ JSONObject data = new JSONObject ();
247
+ data .put ("msg" , msg );
248
+ data .put ("qn" , qn );
249
+ Main .socket .csend ("server_message" , data );
245
250
}
246
251
}
247
252
}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ server-name: "Aurora Field" # 服务器名
3
3
4
4
# 消息同步部分
5
5
enable-socket : true # 是否启用消息同步
6
+ sync-qn : 871260826 # 群号
6
7
sync-flag-enable : true # 是否启用按字符同步(当玩家发送消息前带指定符号时,同步玩家消息,否则不同步)
7
8
sync-flag : " #"
8
9
You can’t perform that action at this time.
0 commit comments