OdiumxXx/CapsBlock — pull request #1 by Mitsugaru (2012-04-29 04:25:41+00:00)
Title: Minor changes.

I was testing this plugin earlier, and HeroChat may have been overriding it... although not completely sure as I just realized that the player testing it had OP (thus they had the ignore permission :\ ).

Nonetheless, I feel like your plugin should have priority considering it potentially might modify the original message. So, I set it to "lowest" so that it will act first, rather than last. That way other chat plugins will more than likely receive your changed message (if they set their priority to normal or "higher").

Also, restructured and separated the class to put the listener and the CommandExecutor into their own classes. Your BukkitDev page says to use /cb as the root command, however your plugin was hardcoded for /capsblock. While, I did set the same ComandExecutor object to both commands, for whatever odd reason /cb doesn't seem to want to work. Maybe you'll be able to figure that out. As of now, it works as needed and is compatable with HeroChat.

EDIT: Nevermind, apparently I just refactored your plugin for no reason. Damn OP player settings tripped me up. Forgive me, I'm just super tired. So, you can ignore these changes, or you can take what you want. Your call.