Skip to content

Commit

Permalink
[1.5] - Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Luncaaa committed Jul 12, 2024
1 parent a94d369 commit 9c04878
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public void run(CommandSender sender, String[] args) {

if (!hasRunOnce) {
sender.sendMessage(plugin.getMessagesManager().getColoredMessage("&aRun the command again to confirm the conversion. It is highly recommended to create a backup of the displays folder before running the command again.", true));
sender.sendMessage(plugin.getMessagesManager().getColoredMessage("&cMake sure you select the correct version. Selecting the incorrect one may cause errors. Command usage: &b/ad convert [previous version]", true));
this.hasRunOnce = true;
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ public class ConversionManager {
private static boolean conversionNeeded;

public static void setConversionNeeded(boolean needsConversion) {
if (needsConversion) {
Logger.log(Level.WARNING, "The displays configuration files are from an older version and have been changed in newer versions.");
Logger.log(Level.WARNING, "Run the command \"/ad convert\" to update the configuration files to newer versions.");
Logger.log(Level.WARNING, "Not converting the configurations will cause the plugin to malfunction. See more information at lucaaa.gitbook.io/advanceddisplays/usage/commands-and-permissions/convert-subcommand");
}
conversionNeeded = needsConversion;

if (!conversionNeeded) return;

Logger.log(Level.WARNING, "The displays configuration files are from an older version and have been changed in newer versions.");
Logger.log(Level.WARNING, "Run the command \"/ad convert\" to update the configuration files to newer versions.");
Logger.log(Level.WARNING, "Not converting the configurations will cause the plugin to malfunction. See more information at lucaaa.gitbook.io/advanceddisplays/usage/commands-and-permissions/convert-subcommand");
}

public static boolean isConversionNeeded() {
Expand Down

0 comments on commit 9c04878

Please sign in to comment.