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:
Christian Koop 2024-02-26 10:43:33 +01:00
parent 0c8fc5d979
commit f87632c2e5
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
3 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ public class IslandInviteEvent extends IslandEvent {
return HANDLERS;
}
public HandlerList getHandlerList() {
public static HandlerList getHandlerList() {
return HANDLERS;
}
}

View File

@ -37,7 +37,7 @@ public class IslandOpenEvent extends IslandEvent implements Cancellable {
return HANDLERS;
}
public HandlerList getHandlerList() {
public static HandlerList getHandlerList() {
return HANDLERS;
}
}

View File

@ -35,7 +35,7 @@ public class IslandStatusChangeEvent extends IslandEvent implements Cancellable
return HANDLERS;
}
public HandlerList getHandlerList() {
public static HandlerList getHandlerList() {
return HANDLERS;
}
}