Logo
MINECRAFTBIBLE
Items
Items

All game items

Blocks
Blocks

Building blocks

Mobs
Mobs

Creatures & monsters

Biomes
Biomes

World biomes

Structures
Structures

Generated structures

Recipes
Recipes

Crafting guides

Advancements
Advancements

Achievements

Loot Tables
Loot Tables

Drop rates

Tags
Tags

Item groupings

All Versions
View all data →
Capes
Cape ArchiveNEW

Browse rare Minecon capes, OptiFine capes, and custom capes from players worldwide

Browse

Player Database
Player DatabasePopular

Search any player

Skin Browser
Skin Browser

Browse & download skins

Cape Gallery
Cape GalleryNEW

Minecon & OptiFine capes

Seed Vault
Seed Vault

Curated seeds

Learn

Guides
GuidesNew

Tutorials & tips

Blog
Blog

News & updates

Community

Community Hub
Community HubHub

Posts, discussions & more

All Versions
View community →
Seed Analyzer
Seed Analyzer

World seed analysis

Loot Explorer
Loot Explorer

Drop rates

Crafting Calculator
Crafting Calculator

Material planning

Enchant Calculator
Enchant Calculator

Probability math

Redstone Lab
Redstone Lab

Signal timing

Trading Profit
Trading Profit

Villager ROI

All Versions
View all tools →
Mods
Mods

Browse all mods

Plugins
Plugins

Server plugins

Resource Packs
Resource Packs

Textures & sounds

Shaders
Shaders

Visual enhancements

Datapacks
Datapacks

World logic

Scanner
Mod Intelligence

Scan & analyze any mod

All Versions
View all mods →
Loading...
IntroductionIntroductionVersion HistoryVersion HistoryGuidesGuidesBlog & NewsBlog & News
ItemsItemsBlocksBlocksMobsMobsRecipesRecipesBiomesBiomesStructuresStructuresAdvancementsAdvancementsLoot TablesLoot TablesTagsTags
ModsModsPluginsPluginsResource PacksResource PacksShadersShadersDatapacksDatapacks

MinecraftBible

The Ultimate Wiki

Logo
MINECRAFTBIBLE

The ultimate Minecraft reference. Every item, block, mob, and recipe documented with precision.

Community

  • Skin Browser
  • Cape Gallery
  • Seed Vault
  • Blog
  • Guides

Database

  • Items
  • Blocks
  • Mobs
  • Recipes
  • Biomes
  • Structures

Tools

  • Seed Analyzer
  • Mod Intelligence
  • Crafting Calculator
  • Enchant Calculator

Mods & Packs

  • Mods
  • Plugins
  • Resource Packs
  • Shaders
  • Datapacks

Site & Legal

  • About
  • Authors
  • Editorial Policy
  • Corrections
  • Contact
  • Privacy Policy
  • Terms of Service
  • DMCA
  • Sitemap

© 2026 MinecraftBible. Not affiliated with Mojang or Microsoft.

PrivacyTermsContact
StarEvents
PluginMIT

StarEvents

A library that passes events into a StarLib event bus. This is the plugin build for the library

22
Downloads
0
Followers
8 months ago
Updated
📦
1
Versions
librarymanagementtechnologybukkitpaperspigot
Download Latestv0.4.0View on Modrinth

📖About StarEvents

⚠️ Do not use this plugin AND StarCore together. StarCore already provides StarEvents and this plugin is not needed.

This is simply a plugin version to allow other developers and other projects of mine to use it without having to depend on StarCore as it is not always needed.

There are a total of three artifacts

  • Dependency Artifact: This is the base artifact and is what is used for the published maven dependency. Use this to develop against
  • Plugin Artifact: This artifact is a plugin, however it does not have all of the required dependencies and is to be used with the other library plugins like StarMCLib. This only contains the StarEvents code
  • Standalone Artifact: This artifact is what you download here on SpigotMC and is a completely standalone version that has all the dependencies that it requires bundled into the plugin

StarEvents is a library that passes the Bukkit Events into a StarLib IEventBus. This allows for a wide range of flexibility in the event system.
The primary use case and the reason why I made it was to allow listening to parent events that do not have a HandlerList defined. For example, you can listen to the base Event class and you get a listener that listens for all events in just a few lines of code.
This also allows for the use case of having listeners in lambdas.
Again, this is the plugin version, so there is no need to directly call StarEvents.init() and the plugin does that already and handles the listener registration. To use this plugin in your own, it is just the standard way of using it.
The first thing is that there is a Functional Interface called EventListener that adds the ability to create lambdas for a listener.
Below is an example.

StarEvents.registerListener(PlayerJoinEvent.class, e -> e.getPlayer().sendMessage("Hello from the lambda universe!"));

The first argument is the class of the event. This makes it so that casts aren't needed to use the methods within that specific event.
The second argument is the lambda expression.
As of StarEvents 0.2.0, all event detection is dynamic. What happens is that the Jar files for Spigot and Paper are looked at first and all classes that extend org.bukkit.event.Event, have a static getHandlerList() method and are not deprecated are detected and dynamically added to the loader plugin's directory/codegen/StarEventsSpigotEventListener.class. This is generated each time that it is loaded either by the standalone plugin or another plugin like StarCore. These listeners ignore the cancelled flag and are of the MONITOR event priority. Use the StarLib @SubscribeEvent annotation in a custom listener to specify this.
Then StarEvents looks at all plugins except for the plugin that loads StarEvents itself and searches for the same requirements of an Event as above. So StarEvents detects other plugin events and each plugin gets their own listener with the pattern StarEvents%PLUGINNAME%Listener.class in the same folder. These are only regenerated and loaded if the plugin is detected. There will be warnings in console related to this though. The warning below is an example

[PlaceholderAPI] Loaded class com.stardevllc.starevents.BukkitEventListener from StarEvents v0.2.0 which is not a depend or softdepend of this plugin.

There is not an easy way to fix this though, so it will just have to exist.


This plugin is provided free of charge and under the MIT Open Source License. I will never sell this library anywhere. If you see it being sold, it is not by me and please report any of these cases to me directly.

👥 Team & Contributors

Firestar311
Firestar311Owner

⚙️ Compatibility

Environment
🖥️ Server-side
Loaders
bukkitpaperspigot
Minecraft Versions
1.81.8.11.8.21.8.31.8.41.8.51.8.61.8.7+61 more

🔗 Links

Modrinth Page