mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-14 19:34:43 +02:00
Seems to work for 1.7.2 (which doesn't have UUIDs)
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user