-
Notifications
You must be signed in to change notification settings - Fork 0
Initialization
Asintoto edited this page Jun 21, 2024
·
4 revisions
You must follow the following steps in order to properly use Basic inside your plugin
Initialize the componets
public final class YourPlugin extends JavaPlugin {
@Override
public void onEnable() {
// all Basic's Options (see in the "Options" page)
Basic.init(this);
// Your plugin start up logic
}
@Override
public void onDisable() {
Basic.terminate();
// Your plugin disabling logic
}
}
You must insert Basic.init(this) in order to let Basic hook with your plugin and inject into it all the required structures and methods. Then, use Basic.terminate() to safely stop Basic. Note: You must specify all Basic's Options before initializing it! More info here