Event API
Introduction
PlotSquared uses the Guava EventBus to register listeners and dispatch events.
Event List
Check the Javadoc of PlotSquared events.
Getting an instance
Registering a Listener
Registering a listener is super easy. Add the @Subscribe
(from the com.google.common.eventbus
package) annotation to any methods that are listening to events, register the class with the EventBus through PlotAPI#registerListener(Class)
and you're done! One example:
Last updated