From 8ff0f242ce40df43438ccb3871b17dc61afa7561 Mon Sep 17 00:00:00 2001 From: Angeschossen <24841122+Angeschossen@users.noreply.github.com> Date: Wed, 27 Mar 2024 17:51:48 +0100 Subject: [PATCH] info --- build.gradle.kts | 2 +- .../pluginframework/api/events/PluginEvent.java | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index ea07539..d312709 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -41,7 +41,7 @@ java { } group = "com.github.angeschossen" -version = "1.0.16" +version = "1.0.17" description = "PluginFrameworkAPI" java.sourceCompatibility = JavaVersion.VERSION_1_8 diff --git a/src/main/java/com/github/angeschossen/pluginframework/api/events/PluginEvent.java b/src/main/java/com/github/angeschossen/pluginframework/api/events/PluginEvent.java index 70cf890..01dd934 100644 --- a/src/main/java/com/github/angeschossen/pluginframework/api/events/PluginEvent.java +++ b/src/main/java/com/github/angeschossen/pluginframework/api/events/PluginEvent.java @@ -10,11 +10,16 @@ public abstract class PluginEvent extends Event { - public PluginEvent(){ + public PluginEvent() { super(!Bukkit.isPrimaryThread()); } public abstract void setAffectedPlayers(ImmutableMap.@NotNull Builder> builder); public abstract void setExpressionVariables(ImmutableMap.@NotNull Builder builder); + + @NotNull + public String getDebugInfo() { + return toString(); + } }