Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-15 11:00:06 +01:00
Add debug code for event exceptions.
Dieser Commit ist enthalten in:
Ursprung
ac5e97d4e5
Commit
f34560ad84
26
Bukkit-Patches/0006-Debug-for-Event-Exceptions.patch
Normale Datei
26
Bukkit-Patches/0006-Debug-for-Event-Exceptions.patch
Normale Datei
@ -0,0 +1,26 @@
|
||||
From 871c6282b0b5235cc498518c2adf9ff51cf6554f Mon Sep 17 00:00:00 2001
|
||||
From: md_5 <md_5@live.com.au>
|
||||
Date: Thu, 14 Mar 2013 20:37:25 +1100
|
||||
Subject: [PATCH] Debug for Event Exceptions.
|
||||
|
||||
---
|
||||
src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java b/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java
|
||||
index 9c7288e..37b67b9 100644
|
||||
--- a/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java
|
||||
+++ b/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java
|
||||
@@ -424,6 +424,9 @@ public class JavaPluginLoader implements PluginLoader {
|
||||
}
|
||||
method.invoke(listener, event);
|
||||
} catch (InvocationTargetException ex) {
|
||||
+ server.getLogger().warning("==== Start Spigot Debug ===");
|
||||
+ ex.printStackTrace();
|
||||
+ server.getLogger().warning("==== End Spigot Debug ===");
|
||||
throw new EventException(ex.getCause());
|
||||
} catch (Throwable t) {
|
||||
throw new EventException(t);
|
||||
--
|
||||
1.8.1-rc2
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren