Dieser Commit ist enthalten in:
Ursprung
297791ec60
Commit
c554d79fec
@ -53,6 +53,7 @@ public class CrashDetector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void run() {
|
private void run() {
|
||||||
|
SWException.init();
|
||||||
while (run) {
|
while (run) {
|
||||||
long curTime = System.currentTimeMillis();
|
long curTime = System.currentTimeMillis();
|
||||||
if(curTime - TIMEOUT > lastTick.get()) {
|
if(curTime - TIMEOUT > lastTick.get()) {
|
||||||
|
@ -32,6 +32,10 @@ public class SWException {
|
|||||||
private static final String cwd = System.getProperty("user.dir");
|
private static final String cwd = System.getProperty("user.dir");
|
||||||
private static final String server = new File(cwd).getName();
|
private static final String server = new File(cwd).getName();
|
||||||
|
|
||||||
|
public static void init() {
|
||||||
|
//force class loading
|
||||||
|
}
|
||||||
|
|
||||||
public static void log(String message, String stacktrace){
|
public static void log(String message, String stacktrace){
|
||||||
StringBuilder msgBuilder = new StringBuilder(message).append("\nPlayers: ");
|
StringBuilder msgBuilder = new StringBuilder(message).append("\nPlayers: ");
|
||||||
for(Player player : Bukkit.getOnlinePlayers())
|
for(Player player : Bukkit.getOnlinePlayers())
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren