Skip to content

Instantly share code, notes, and snippets.

@zax71
Last active January 12, 2024 17:31
Show Gist options
  • Save zax71/e7f31c4ee137ed07dc8117409a308c60 to your computer and use it in GitHub Desktop.
Save zax71/e7f31c4ee137ed07dc8117409a308c60 to your computer and use it in GitHub Desktop.
Basic Minestom Event Listener
public class MinigameStart implements EventListener<MinigameStartEvent> {
@Override
public @NotNull Class<MinigameStartEvent> eventType() {
return MinigameStartEvent.class;
}
@Override
public @NotNull Result run(@NotNull MinigameStartEvent event) {
return Result.SUCCESS;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment