File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
java/cn/handyplus/chat/listener Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 66
77 <groupId >cn.handyplus.chat</groupId >
88 <artifactId >PlayerChat</artifactId >
9- <version >1.4.0 </version >
9+ <version >1.4.1 </version >
1010 <description >一款有点好用的聊天插件</description >
1111
1212 <properties >
Original file line number Diff line number Diff line change @@ -233,6 +233,10 @@ public static boolean blackListCheck(String message) {
233233 */
234234 private static String getChannel (Player player ) {
235235 String channel = ChatConstants .PLAYER_CHAT_CHANNEL .getOrDefault (player .getUniqueId (), ChatConstants .DEFAULT );
236+ // 插件频道直接返回
237+ if (ChatConstants .PLUGIN_CHANNEL .containsKey (channel )) {
238+ return channel ;
239+ }
236240 // 是否有对应频道权限 如果没有权限回到默认频道
237241 if (!ChatConstants .DEFAULT .equals (channel ) && !player .hasPermission (ChatConstants .PLAYER_CHAT_USE + channel )) {
238242 channel = ChatConstants .DEFAULT ;
Original file line number Diff line number Diff line change 11name : PlayerChat
22main : cn.handyplus.chat.PlayerChat
3- version : 1.4.0
3+ version : 1.4.1
44author : handy
55api-version : 1.13
66softdepend : [ PlaceholderAPI,DiscordSRV ]
You can’t perform that action at this time.
0 commit comments