mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-27 18:01:37 +01:00
fix: Corrects method signature for required getHandlerList in events #27
The method needs to be static or an IllegalPluginAccessException is thrown when trying to use the event
This commit is contained in:
parent
0c8fc5d979
commit
f87632c2e5
@ -24,7 +24,7 @@ public class IslandInviteEvent extends IslandEvent {
|
||||
return HANDLERS;
|
||||
}
|
||||
|
||||
public HandlerList getHandlerList() {
|
||||
public static HandlerList getHandlerList() {
|
||||
return HANDLERS;
|
||||
}
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ public class IslandOpenEvent extends IslandEvent implements Cancellable {
|
||||
return HANDLERS;
|
||||
}
|
||||
|
||||
public HandlerList getHandlerList() {
|
||||
public static HandlerList getHandlerList() {
|
||||
return HANDLERS;
|
||||
}
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ public class IslandStatusChangeEvent extends IslandEvent implements Cancellable
|
||||
return HANDLERS;
|
||||
}
|
||||
|
||||
public HandlerList getHandlerList() {
|
||||
public static HandlerList getHandlerList() {
|
||||
return HANDLERS;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user