Skip to content

Commit

Permalink
[CORE] Fix it like we do for the Startup Checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfieheart authored Jan 22, 2025
1 parent 2c0ea1b commit 170264f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,11 +421,11 @@ public void onDisable() {
}

public String getNmsVersion() {
if(getHasSpigot()){
// return this.getServer().getClass().getPackage().getName().replace(".", ",").split(",")[3];
if (getHasPaper() || getHasFolia()){
return this.getMinecraftVersion();
} else {
return this.getServer().getClass().getPackage().getName().replace(".", ",").split(",")[3];
} else{
String notSpigot = "NotUsingSpigot";
return notSpigot;
}
}

Expand Down

0 comments on commit 170264f

Please sign in to comment.