Skip to content

Commit

Permalink
[CORE] Fix the check for the Size Menu Requirements (Part 1.5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfieheart authored Jan 22, 2025
1 parent 32aa2d2 commit 9400d61
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,11 @@ public void onDisable() {
}

public String getNmsVersion() {
return this.getServer().getClass().getPackage().getName().replace(".", ",").split(",")[3];
if(getHasSpigot()){
return this.getServer().getClass().getPackage().getName().replace(".", ",").split(",")[3];
} else{
return this.getServer().getMinecraftVersion();
}
}

public boolean getHasSpigot() {
Expand Down

0 comments on commit 9400d61

Please sign in to comment.