fix: 控制台重复输出聊天信息

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2017-04-07 21:46:00 +08:00
parent f18647a2c6
commit a6653ade3d
2 changed files with 7 additions and 2 deletions

View File

@ -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</version> <version>1.8.1</version>
<build> <build>
<finalName>${project.name}</finalName> <finalName>${project.name}</finalName>
<resources> <resources>
@ -70,6 +70,12 @@
<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.changes>
§617-04-07 §c修复: 控制台重复输出聊天信息;
</update.changes>
<update.changelog>
</update.changelog>
<env.GIT_COMMIT>DEV</env.GIT_COMMIT> <env.GIT_COMMIT>DEV</env.GIT_COMMIT>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.source>1.8</maven.compiler.source>

View File

@ -120,7 +120,6 @@ public class ChatListener implements Listener {
receive.clear(); receive.clear();
plist.removeAll(offList); plist.removeAll(offList);
plist.forEach(tr::send); plist.forEach(tr::send);
Bukkit.getConsoleSender().sendMessage(tr.toOldMessageFormat());
} }
private Tellraw handleTellraw(Player player, Tellraw tr, ChatRule cr, String message) { private Tellraw handleTellraw(Player player, Tellraw tr, ChatRule cr, String message) {