Skip to content

Addon API

LimeGlass edited this page Feb 17, 2024 · 3 revisions

Creating an addon is fairly simple for Scroll. It does not depend on any of the server software. All your main class requires is an initAddon method with no parameters.

package com.skriptlang.scroll.example;

import com.skriptlang.scroll.ScrollAddon;

public class ExampleAddon extends ScrollAddon {

	protected ExampleAddon() {
		super("Example"); // Addon name
	}

	@Override
	protected void initAddon() {
		// Called before Scroll has registered it's own syntaxes.
		// skript-parser has been enabled at this point.
		// Setup your configuration files here.
	}

	@Override
	protected void startRegistration() {
		// Start registering your syntaxes in this block.
		loadClasses("me.limeglass.example", "elements");
	}

}

Clone this wiki locally