Skip to content

Commit

Permalink
Make logs more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Nov 9, 2024
1 parent 5160686 commit f82542e
Showing 1 changed file with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,25 +144,31 @@ public void onLoad() {
if (PaperLib.getMinecraftVersion() < 20 || (PaperLib.getMinecraftVersion() == 20 && PaperLib.getMinecraftPatchVersion() < 5)) {
if (type.equals("mojang") && !Refraction.isMojangMapped()) {
throw new IllegalStateException(
"You are using the wrong FAWE jar for your Minecraft version.\n" +
"Download the correct FAWE jar from Modrinth: https://modrinth.com/plugin/fastasyncworldedit/"
"\n**********************************************\n" +
"** You are using the wrong FAWE jar for your Minecraft version.\n" +
"** Download the correct FAWE jar from Modrinth: https://modrinth.com/plugin/fastasyncworldedit/\n" +
"**********************************************"
);
}
} else if (PaperLib.getMinecraftVersion() > 20 || (PaperLib.getMinecraftVersion() == 20 && PaperLib.getMinecraftPatchVersion() >= 5)) {
if (type.equals("spigot")) {
LOGGER.warn(
"You are using the Spigot-mapped FAWE jar on a modern Paper version.\n" +
"This will result in slower first-run times and wasted disk space from plugin remapping.\n" +
"Download the Paper FAWE jar from Modrinth to avoid this: https://modrinth.com/plugin/fastasyncworldedit/"
"\n**********************************************\n" +
"** You are using the Spigot-mapped FAWE jar on a modern Paper version.\n" +
"** This will result in slower first-run times and wasted disk space from plugin remapping.\n" +
"** Download the Paper FAWE jar from Modrinth to avoid this: https://modrinth.com/plugin/fastasyncworldedit/\n" +
"**********************************************"
);
}
}
} else {
if (type.equals("mojang")) {
throw new IllegalStateException(
"You are attempting to run the Paper FAWE jar on a Spigot server.\n" +
"Either switch to Paper (https://papermc.io), or download the correct FAWE jar for your platform\n" +
"from Modrinth: https://modrinth.com/plugin/fastasyncworldedit/"
"\n**********************************************\n" +
"** You are attempting to run the Paper FAWE jar on a Spigot server.\n" +
"** Either switch to Paper (https://papermc.io), or download the correct FAWE jar for your platform\n" +
"** from Modrinth: https://modrinth.com/plugin/fastasyncworldedit/\n" +
"**********************************************"
);
}
}
Expand Down

0 comments on commit f82542e

Please sign in to comment.