Skip to content

Commit

Permalink
add a few more version related log messages and checks to legacy init
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Dec 31, 2024
1 parent 519dcaa commit e201839
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ public void onEnable() {
return;
}

if (PlatformUtil.isFolia()) {
getLogger().severe("Please use the Folia jar instead of modifying the plugin.yml.");
getServer().getPluginManager().disablePlugin(this);
return;
}

prefixedLogger = LoggerFactory.getLogger(getLogger().getName());
unPrefixedLogger = LoggerFactory.getLogger("");

Expand Down Expand Up @@ -116,6 +122,7 @@ public void onEnable() {
} else if (PlatformUtil.getMinecraftVersion() > 19) {
prefixedLogger.warn("Legacy is intended for Paper server versions 1.12 - 1.19.4.");
prefixedLogger.warn("Its highly recommended to use the Folia jar for your server.");
prefixedLogger.warn("Some modules may not work properly otherwise.");
}

prefixedLogger.info("Loading Datastore");
Expand Down

0 comments on commit e201839

Please sign in to comment.