mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-29 03:13:52 -07:00
[Bleeding] Fixes deadlock issue and generic usage. Fixes BUKKIT-844 and fixes BUKKIT-854
By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
@@ -4,7 +4,9 @@ import org.bukkit.event.HandlerList;
|
||||
import org.bukkit.plugin.RegisteredServiceProvider;
|
||||
|
||||
/**
|
||||
* This event is called when a service is registered.
|
||||
* This event is called when a service is registered.<br>
|
||||
* <b>Warning:</b> The order in which register and unregister
|
||||
* events are called should not be relied upon.
|
||||
*/
|
||||
public class ServiceRegisterEvent extends ServiceEvent {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
@@ -13,6 +15,7 @@ public class ServiceRegisterEvent extends ServiceEvent {
|
||||
super(registeredProvider);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
}
|
||||
|
@@ -4,7 +4,9 @@ import org.bukkit.event.HandlerList;
|
||||
import org.bukkit.plugin.RegisteredServiceProvider;
|
||||
|
||||
/**
|
||||
* This event is called when a service is unregistered.
|
||||
* This event is called when a service is unregistered.<br>
|
||||
* <b>Warning:</b> The order in which register and unregister
|
||||
* events are called should not be relied upon.
|
||||
*/
|
||||
public class ServiceUnregisterEvent extends ServiceEvent {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
@@ -13,6 +15,7 @@ public class ServiceUnregisterEvent extends ServiceEvent {
|
||||
super(serviceProvider);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
}
|
||||
|
Reference in New Issue
Block a user