SteamWar/SpigotCore
Archiviert
13
0
Dieser Commit ist enthalten in:
Lixfel 2020-01-25 09:35:02 +01:00
Ursprung f77604e6ec
Commit f44fe64a43

Datei anzeigen

@ -2,6 +2,7 @@ package de.steamwar.sql;
import org.apache.logging.log4j.core.LogEvent;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
public class SWException {
private SWException(){}
@ -34,6 +35,11 @@ public class SWException {
logDisabled = true;
}
message += "\n\n";
for(Player player : Bukkit.getOnlinePlayers())
message += player.getName() + " ";
SQL.update("INSERT INTO Exception (server, message, stacktrace) VALUES ('" + server + "', '" + SQL.disarmString(message) + "', '" + SQL.disarmString(stacktrace.toString()) + "')");
}
}