Skip to main content

📡 Events reference

All public events live under com.ssomar.score.api.<plugin>.events (and .load for the lifecycle events). Import them from the com.ssomar:SCore artifact.

ExecutableItems

EventCancellableFired when
ExecutableItemActivateEventan EI activator triggers for a player, before conditions run
AddItemInPlayerInventoryEventan EI enters a player inventory
RemoveItemInPlayerInventoryEventan EI leaves a player inventory
ExecutableItemsPostLoadEventall EI configurations are loaded
RefreshExecutableItemEvent (in com.ssomar.score.events)an EI is refreshed (command or auto-update activator)

ExecutableBlocks

EventCancellableFired when
ExecutableBlockPlaceEventan EB is placed
ExecutableBlockBreakEventa placed EB is broken (BreakMethod NATURAL / CUSTOM)
ExecutableBlockPistonBreakEventa piston is about to break a placed EB
ExecutableBlockLiquidBreakEventa liquid is about to break a placed EB
EntityWalkOnExecutableBlockEventan entity walks on an EB with an ENTITY_WALK_ON activator
ExecutableBlocksPostLoadEventall EB configurations are loaded

ExecutableEvents

EventCancellableFired when
ExecutableEventActivateEventan EE activator triggers, before conditions run (player may be null, thread-aware)
ExecutableEventsPostLoadEventall EE configurations are loaded

ExecutableCrafting

EventCancellableFired when
ExecutableCraftingCraftEventa player crafts with a custom recipe, before ingredients are consumed (result mutable)
ExecutableCraftingPostLoadEventall recipes are loaded and registered

MyFurniture

EventCancellableFired when
FurniturePlaceEventa furniture is placed
FurnitureBreakEventa placed furniture is broken (BreakMethod)
MyFurniturePostLoadEventall furniture configurations are loaded

CustomPiglinsTrades

EventCancellableFired when
PiglinTradeEventa player triggers a custom piglin trade, before it runs
CustomPiglinsTradesPostLoadEventall trade configurations are loaded
tip

Every *PostLoadEvent carries the loaded manager (e.getManager()), so you can do your initial scan right in the listener without a lookup race.

💬 Comments

Have questions or feedback? Join the discussion below!