Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Getting an instance of PlotSquared

NotMyFault edited this page Feb 16, 2020 · 7 revisions
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class Main extends JavaPlugin {
    public static Main THIS;

    @Override
    public void onEnable() {
        Main.THIS = this;
        if (Bukkit.getPluginManager().getPlugin("PlotSquared") != null) {
        // Do something
       }
    }
}
Clone this wiki locally