diff --git a/src/main/java/com/reider745/api/CallbackHelper.java b/src/main/java/com/reider745/api/CallbackHelper.java index ce9b2d61c..593164a32 100644 --- a/src/main/java/com/reider745/api/CallbackHelper.java +++ b/src/main/java/com/reider745/api/CallbackHelper.java @@ -59,6 +59,7 @@ public void run() { public static void registerCallback(Type type) { ThreadRegion threadRegion = new ThreadRegion(); + threadRegion.setName(type.name()); threadRegion.start(); types.put(type, threadRegion); @@ -130,6 +131,7 @@ public static void applyRegion(Type type, Level level, ICallbackApply apply) { public static void apply(Event event, ICallbackApply apply, boolean isPrevented) { Thread thread = new ThreadCallbackEvent(event, apply, isPrevented); + thread.setName(event.getEventName()); thread.start(); while (thread.isAlive()) { }