Developer API
The Santa Says API allows developers to hook into game lifecycles, track player statistics, and modify task behavior. All custom events in the plugin inherit from the base SantaSaysEvent class.
Dependency Setup
Section titled “Dependency Setup”To start using the API, you need to add the Santa Says JAR file to your project’s dependencies. Create a folder named libs in your project’s root directory and place the santa-says-x.x.x.jar file inside it.
dependencies { compileOnly files('libs/santa-says-x.x.x.jar')}dependencies { compileOnly(files("libs/santa-says-x.x.x.jar"))}<dependency> <groupId>io.greenmc</groupId> <artifactId>santa-says</artifactId> <version>LATEST</version> <scope>system</scope> <systemPath>${project.basedir}/libs/santa-says-x.x.x.jar</systemPath></dependency>name: YourPluginversion: 1.0.0main: your.package.Maindepend: [SantaSays]Base Event Class
Section titled “Base Event Class”Every event provided by the Santa Says API extends the SantaSaysEvent class. This ensures a consistent implementation of Bukkit’s HandlerList and makes it easier to manage custom listeners.
public abstract class SantaSaysEvent extends Event {
private static final HandlerList HANDLER_LIST = new HandlerList();
@NotNull @Override public HandlerList getHandlers() { return HANDLER_LIST; }
public static HandlerList getHandlerList() { return HANDLER_LIST; }}Next Steps
Section titled “Next Steps”Explore the different event categories to start building your integration: