Skip to content

1. How to use

Nont Nonnipat edited this page Nov 27, 2024 · 4 revisions

1.1 Adding to dependency

<!-- rest of the code ... <dependencies> -->

    <dependency>
        <groupId>com.pinont</groupId>
        <artifactId>experiences</artifactId>
        <version>Latest version of Experiences</version>
        <scope>compile</scope>
    </dependency>

<!-- rest of the code ... </dependencies> -->

1.2 Setting up the MainClass

import com.pinont.experiences.plugin.ExpPlugin;

public class MainClass extends ExpPlugin {

    @Override
    public void onPluginStart() {
        /* We are now supporting auto registration for 
           Events and Commands (ps. if you are using SimpleCommand) */
    }

    @Override
    public void onPluginStop() { /* Do something when the plugin is being disabled */ }

    public static MainClass getInstance() {
        return (MainClass) ExpPlugin.getPlugin();
    }
}

Coming soon full version on 2025!

Clone this wiki locally