mirror of
https://e.coding.net/circlecloud/MiaoChat.git
synced 2024-11-22 14:38:47 +00:00
fix: BungeeCord未分配分组时报错
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
a6653ade3d
commit
6783da66f7
5
pom.xml
5
pom.xml
@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>pw.yumc</groupId>
|
<groupId>pw.yumc</groupId>
|
||||||
<artifactId>MiaoChat</artifactId>
|
<artifactId>MiaoChat</artifactId>
|
||||||
<version>1.8.1</version>
|
<version>1.8.2</version>
|
||||||
<build>
|
<build>
|
||||||
<finalName>${project.name}</finalName>
|
<finalName>${project.name}</finalName>
|
||||||
<resources>
|
<resources>
|
||||||
@ -70,8 +70,9 @@
|
|||||||
<url>http://ci.yumc.pw/job/${project.artifactId}/</url>
|
<url>http://ci.yumc.pw/job/${project.artifactId}/</url>
|
||||||
</ciManagement>
|
</ciManagement>
|
||||||
<properties>
|
<properties>
|
||||||
<update.description>§a正式版本 §b${project.version} §a版本</update.description>
|
<update.description>§a正式版本 §bv${project.version}</update.description>
|
||||||
<update.changes>
|
<update.changes>
|
||||||
|
§617-05-21 §c修复: BungeeCord未分配分组时报错;
|
||||||
§617-04-07 §c修复: 控制台重复输出聊天信息;
|
§617-04-07 §c修复: 控制台重复输出聊天信息;
|
||||||
</update.changes>
|
</update.changes>
|
||||||
<update.changelog>
|
<update.changelog>
|
||||||
|
@ -26,6 +26,7 @@ public class MiaoChatBungee extends Plugin implements Listener {
|
|||||||
public void handle(final PluginMessageEvent event) {
|
public void handle(final PluginMessageEvent event) {
|
||||||
if (event.getTag().equals(MiaoMessage.CHANNEL) || event.getTag().equals(MiaoMessage.NORMALCHANNEL)) {
|
if (event.getTag().equals(MiaoMessage.CHANNEL) || event.getTag().equals(MiaoMessage.NORMALCHANNEL)) {
|
||||||
InetSocketAddress origin = event.getSender().getAddress();
|
InetSocketAddress origin = event.getSender().getAddress();
|
||||||
|
if (groups.containsKey(origin)) {
|
||||||
groups.get(origin).forEach(server -> {
|
groups.get(origin).forEach(server -> {
|
||||||
if (!server.getAddress().equals(origin) && server.getPlayers().size() > 0) {
|
if (!server.getAddress().equals(origin) && server.getPlayers().size() > 0) {
|
||||||
server.sendData(event.getTag(), event.getData());
|
server.sendData(event.getTag(), event.getData());
|
||||||
@ -33,6 +34,7 @@ public class MiaoChatBungee extends Plugin implements Listener {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onLoad() {
|
public void onLoad() {
|
||||||
|
Loading…
Reference in New Issue
Block a user