mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-23 05:36:45 +01:00
Fixes #2355
This commit is contained in:
parent
0d67c174aa
commit
4daf1c7721
@ -131,14 +131,6 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override public void onEnable() {
|
@Override public void onEnable() {
|
||||||
if (PlotSquared.get().IMP.getServerVersion()[1] < 13) {
|
|
||||||
System.out.println(
|
|
||||||
"You can't use this version of PlotSquared on a server less than Minecraft 1.13.2.");
|
|
||||||
System.out
|
|
||||||
.println("Please check the download page for the link to the legacy versions.");
|
|
||||||
Bukkit.shutdown();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.pluginName = getDescription().getName();
|
this.pluginName = getDescription().getName();
|
||||||
PlotPlayer.registerConverter(Player.class, BukkitUtil::getPlayer);
|
PlotPlayer.registerConverter(Player.class, BukkitUtil::getPlayer);
|
||||||
|
|
||||||
@ -161,6 +153,15 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
|
|||||||
|
|
||||||
new PlotSquared(this, "Bukkit");
|
new PlotSquared(this, "Bukkit");
|
||||||
|
|
||||||
|
if (PlotSquared.get().IMP.getServerVersion()[1] < 13) {
|
||||||
|
System.out.println(
|
||||||
|
"You can't use this version of PlotSquared on a server less than Minecraft 1.13.2.");
|
||||||
|
System.out
|
||||||
|
.println("Please check the download page for the link to the legacy versions.");
|
||||||
|
Bukkit.shutdown();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Check for updates
|
// Check for updates
|
||||||
if (PlotSquared.get().getUpdateUtility() != null) {
|
if (PlotSquared.get().getUpdateUtility() != null) {
|
||||||
final UpdateUtility updateUtility = PlotSquared.get().getUpdateUtility();
|
final UpdateUtility updateUtility = PlotSquared.get().getUpdateUtility();
|
||||||
|
Loading…
Reference in New Issue
Block a user