SpoutDev/SpoutAPI — pull request #287 by dredhorse (2012-07-11 21:20:43+00:00)
Title: Inter plugin communication

Based on the discussions I had in IRC with Sleaker concerning the protection service I created this idea.

I would like to use it as a base for discussion, there is probably a better way but the general idea I think is neat:

a channel where plugins request information based on events and a response channel where plugin who can supply that information answer.

On top of this a way to "call a method" in an unknown plugin ( lock and unLock requests) and sending custom events with a standardized structure ( enteredRegion, leftRegion).

You could even perhaps make the enum class less messy by using a serializable, extendable typesave enum as described in effectiv java / joshua Bloch.