Skip to content

Commit

Permalink
fix: version parsing working incorrectly for certain versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Thatsmusic99 committed Jun 5, 2024
1 parent 931e616 commit 084e0c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private void checkVersion() {

// Get the version in question.
debug("Performing server version check.");
int number = Integer.parseInt(Bukkit.getBukkitVersion().split("\\.")[1]);
int number = Integer.parseInt(Bukkit.getBukkitVersion().split("\\.|-")[1]);
if (number < 17) {
getLogger().severe("!!! YOU ARE USING ADVANCEDTELEPORT ON AN UNSUPPORTED VERSION. !!!");
getLogger().severe("The plugin only receives mainstream support for 1.17.1 to 1.19.x");
Expand Down

0 comments on commit 084e0c6

Please sign in to comment.