diff --git a/DynmapCore/src/main/java/org/dynmap/SimpleWebChatComponent.java b/DynmapCore/src/main/java/org/dynmap/SimpleWebChatComponent.java index 9a408a74d..99a69134d 100644 --- a/DynmapCore/src/main/java/org/dynmap/SimpleWebChatComponent.java +++ b/DynmapCore/src/main/java/org/dynmap/SimpleWebChatComponent.java @@ -16,7 +16,7 @@ public SimpleWebChatComponent(final DynmapCore plugin, final ConfigurationNode c @Override public void triggered(ChatEvent t) { if(plugin.getServer().sendWebChatEvent(t.source, t.name, t.message)) { - if (!t.message.contains("[QQ]") && !t.message.contains("[KOOK]")) { + if (!t.name.contains("[QQ]") && !t.name.contains("[KOOK]")) { String msg; String msgfmt = plugin.configuration.getString("webmsgformat", null); if (msgfmt != null) {