From 6468243051644cc0022df784316d2e11e5799cfe Mon Sep 17 00:00:00 2001 From: ShaneBee Date: Mon, 29 Apr 2024 08:57:57 -0700 Subject: [PATCH] ReflectionUtils - remove unneeded packageVersion field - Paper stopped using craftbukkit relocation and this line causes errors in 1.20.5 --- .../java/net/skripthub/docstool/utils/ReflectionUtils.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/net/skripthub/docstool/utils/ReflectionUtils.java b/src/main/java/net/skripthub/docstool/utils/ReflectionUtils.java index f7d5c6e..e0095b8 100644 --- a/src/main/java/net/skripthub/docstool/utils/ReflectionUtils.java +++ b/src/main/java/net/skripthub/docstool/utils/ReflectionUtils.java @@ -4,16 +4,12 @@ import java.lang.reflect.Field; import java.lang.reflect.Method; -import org.bukkit.Bukkit; - /** * Just a simple reflection class, just to not depend on Skript 2.2+ (I think it is the only thing I use from it) * @author Tuke_Nuke */ public class ReflectionUtils { - public static final String packageVersion = Bukkit.getServer().getClass().getPackage().getName().split(".v")[1]; - /** * Check if a class exists. * @param clz - The class path, like 'org.bukkit.entity.Player' @@ -164,4 +160,4 @@ public static T getField(Class from, Object obj, String field){ return null; } -} \ No newline at end of file +}