Skip to content

Commit

Permalink
feat: Mark 1.17 as experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
osipxd committed Aug 23, 2021
1 parent 580bc68 commit fe313c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ X changes total

## [Unreleased]

### Added

- **This update brings experimental Spigot 1.17 support.**

### Changes

- This version requires at least Mimic 0.6.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,18 @@ public class VersionHandler {
public static final int VERSION_1_15 = 1_15_00;
public static final int VERSION_1_16 = 1_16_00;
public static final int VERSION_1_17 = 1_17_00;
public static final int VERSION_1_18 = 1_18_00;

private static final Pattern pattern = Pattern.compile("(?<version>\\d\\.\\d{1,2}(\\.\\d)?)-.*");

private static int versionCode = -1;

public static boolean isNotSupportedVersion() {
return getVersionCode() < VERSION_1_14 || getVersionCode() >= VERSION_1_17;
return getVersionCode() < VERSION_1_14 || getVersionCode() >= VERSION_1_18;
}

public static boolean isExperimentalSupport() {
return false;
return getVersionCode() == VERSION_1_17;
}

public static boolean isLegacy() {
Expand Down

0 comments on commit fe313c6

Please sign in to comment.