From b241ac378a90a1b08d19dd44669aef95bb837fd5 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 24 Aug 2022 14:42:08 +0200 Subject: [PATCH] Fix file name --- SpigotCore_Main/src/de/steamwar/sql/SWException.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/sql/SWException.java b/SpigotCore_Main/src/de/steamwar/sql/SWException.java index 7aa6cf7..0622a89 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/SWException.java +++ b/SpigotCore_Main/src/de/steamwar/sql/SWException.java @@ -30,7 +30,7 @@ public class SWException { private static final String serverVersion = Bukkit.getServer().getVersion(); private static final String cwd = System.getProperty("user.dir"); - private static final String server = new File(".").getAbsoluteFile().getName(); + private static final String server = new File(cwd).getName(); public static void log(String message, String stacktrace){ StringBuilder msgBuilder = new StringBuilder(message).append("\nPlayers: ");