Log players
Dieser Commit ist enthalten in:
Ursprung
f77604e6ec
Commit
f44fe64a43
@ -2,6 +2,7 @@ package de.steamwar.sql;
|
|||||||
|
|
||||||
import org.apache.logging.log4j.core.LogEvent;
|
import org.apache.logging.log4j.core.LogEvent;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
public class SWException {
|
public class SWException {
|
||||||
private SWException(){}
|
private SWException(){}
|
||||||
@ -34,6 +35,11 @@ public class SWException {
|
|||||||
logDisabled = true;
|
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()) + "')");
|
SQL.update("INSERT INTO Exception (server, message, stacktrace) VALUES ('" + server + "', '" + SQL.disarmString(message) + "', '" + SQL.disarmString(stacktrace.toString()) + "')");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren