forked from TuxCoding/FastLogin
Revert "Ignore the correct channel"
This reverts commit 465519ee
Namespace key class did the lowercase operation
This commit is contained in:
@ -38,7 +38,7 @@ public class PluginMessageListener implements Listener {
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void onPluginMessage(PluginMessageEvent pluginMessageEvent) {
|
public void onPluginMessage(PluginMessageEvent pluginMessageEvent) {
|
||||||
String channel = pluginMessageEvent.getTag();
|
String channel = pluginMessageEvent.getTag();
|
||||||
if (pluginMessageEvent.isCancelled() || !channel.startsWith(plugin.getName())) {
|
if (pluginMessageEvent.isCancelled() || !channel.startsWith(plugin.getName().toLowerCase())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user