Skip to content

Commit

Permalink
fix lifecycle events
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed Feb 28, 2024
1 parent 1b25e6e commit 31e5ba3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

public class LifeCycleEvents {

public static Event<ServerStarting> SERVER_STARTING = Event.create(ServerStarting.class, listeners -> server -> {
public static final Event<ServerStarting> SERVER_STARTING = dev.upcraft.sparkweave.api.event.Event.create(ServerStarting.class, listeners -> server -> {
for (ServerStarting listener : listeners) {
listener.onServerStarting(server);
}
});

public static Event<ServerStarted> SERVER_STARTED = Event.create(ServerStarted.class, listeners -> server -> {
public static final Event<ServerStarted> SERVER_STARTED = Event.create(ServerStarted.class, listeners -> server -> {
for (ServerStarted listener : listeners) {
listener.onServerStarted(server);
}
Expand Down

0 comments on commit 31e5ba3

Please sign in to comment.