From f82542edcb18327a5b9af567adb03597608b8c46 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Fri, 8 Nov 2024 17:23:01 -0700 Subject: [PATCH] Make logs more visible --- .../worldedit/bukkit/WorldEditPlugin.java | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java index 1a42d17650..80cc7e9f9f 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java @@ -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" + + "**********************************************" ); } }