This repository was archived by the owner on Jul 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Getting an instance of PlotSquared
NotMyFault edited this page Feb 16, 2020
·
8 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
}
}
}