Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

Getting an instance of PlotSquared

NotMyFault edited this page Apr 27, 2021 · 8 revisions
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class MyPlotPlugin extends JavaPlugin {
    public static MyPlotPlugin THIS;

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