MassiveCraft/Factions — pull request #101 by donington (2012-03-06 18:08:05+00:00)
Title: Committer: donington

On branch FactionsChatListener

Taking advantage of Bukkit's ability to have multiple listeners of the
same type in the same Listener class.

I've consolidated the following PlayerChatEvent handlers into a new
listener named FactionsChatListener:
* FactionsChatEarlyListener.onPlayerChat() --> FactionsChatListener.onPlayerEarlyChat()
* FactionsPlayerListener.onPlayerChat() --> FactionsChatListener.onPlayerChat()

This could be useful to plugins that implement fully featured chat channels to become the handler for faction/alliance channels (such as the one I am developing) by eventually allowing a configuration option to disable registering the new FactionsChatListener and reducing overall overhead.

Changes to be committed:
new file: src/com/massivecraft/factions/listeners/FactionsChatListener.java
deleted: src/com/massivecraft/factions/listeners/FactionsChatEarlyListener.java
modified: src/com/massivecraft/factions/listeners/FactionsPlayerListener.java
modified: src/com/massivecraft/factions/P.java