Revert "Ignore the correct channel"

This reverts commit 465519ee
Namespace key class did the lowercase operation
This commit is contained in:
games647
2021-02-11 10:22:50 +01:00
parent 25356db175
commit a15de80c7d

View File

@ -38,7 +38,7 @@ public class PluginMessageListener implements Listener {
@EventHandler
public void onPluginMessage(PluginMessageEvent pluginMessageEvent) {
String channel = pluginMessageEvent.getTag();
if (pluginMessageEvent.isCancelled() || !channel.startsWith(plugin.getName())) {
if (pluginMessageEvent.isCancelled() || !channel.startsWith(plugin.getName().toLowerCase())) {
return;
}