Skip to content

Commit

Permalink
Enforce min version to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
md5sha256 committed Jun 21, 2024
1 parent 34f7234 commit fbb66b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions AreaShop/src/main/java/me/wiefferink/areashop/AreaShop.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ public void onEnable() {

// Setup NMS Impl
Version currentServerVersion = VersionUtil.parseMinecraftVersion(Bukkit.getBukkitVersion());
if (currentServerVersion.versionData().isOlderThan(VersionUtil.MC_1_20_6)) {
error("Unsupported minecraft version: " + currentServerVersion + "! Minimum is 1.20.6");
if (currentServerVersion.versionData().isOlderThan(VersionUtil.MC_1_21)) {
error("Unsupported minecraft version: " + currentServerVersion + "! Minimum is 1.21");
shutdownOnError();
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

public class VersionUtil {

public static final VersionData MC_1_20_6 = new VersionData(1, 20, 6);
public static final VersionData MC_1_21 = new VersionData(1, 21);

@Nonnull
public static String padTrailingZero(@Nonnull String minecraftVersion) {
Expand Down

0 comments on commit fbb66b8

Please sign in to comment.