Seems to work for 1.7.2 (which doesn't have UUIDs)

This commit is contained in:
boy0001
2014-12-14 00:30:29 +11:00
parent 7b203261a3
commit 760041607e
21 changed files with 109 additions and 35 deletions

View File

@ -124,7 +124,7 @@ public class PlotAPI {
* @see com.intellectualcrafters.plot.PlotMain
*/
public PlotAPI(@NotNull final JavaPlugin plugin) {
this.plotMain = JavaPlugin.getPlugin(PlotMain.class);
this.plotMain = PlotMain.getMain();
if (plotMain == null) {
throw new PlotSquaredException(PlotSquaredException.PlotError.PLOTMAIN_NULL, "Failed to fetch the plotmain instance, Plot API for " + plugin.getName() + " will be disabled");
}