Update EventListener.java

I believe this might remove the errors when trying to load the plugin with CB 1.5.1 R0.2
Take a look and see If you could either fix it or fix it another way.