-
Notifications
You must be signed in to change notification settings - Fork 0
Setup
emmily edited this page Oct 2, 2023
·
4 revisions
Here you'll learn how to set up Daisy in your own plugin. In order to set up Daisy you have to create a DynamicMenuRegistry.
package ...;
import dev.emmily.daisy.api.menu.types.dynamic.registry.DynamicMenuRegistry;
import dev.emmily.daisy.core.DaisySetup;
public class ExamplePlugin extends JavaPlugin {
private DynamicMenuRegistry registry;
@Override
public void onEnable() {
registry = new DynamicMenuRegistry();
DaisySetup.injectListeners(this, registry);
DaisySetup.injectScheduler(this, registry);
}
}