From 08fa53c1d6e21b33e1110c208ce9aedb0a6b52c2 Mon Sep 17 00:00:00 2001 From: willies952002 Date: Fri, 14 Aug 2020 17:11:34 -0400 Subject: [PATCH] Properly detect all derivatives of Spigot Not all implementations contain a package-info class, but they all contain the SpigotConfig class --- .../rypofalem/armorstandeditor/ArmorStandEditorPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/rypofalem/armorstandeditor/ArmorStandEditorPlugin.java b/src/main/java/io/github/rypofalem/armorstandeditor/ArmorStandEditorPlugin.java index 1727343e..95689b6c 100644 --- a/src/main/java/io/github/rypofalem/armorstandeditor/ArmorStandEditorPlugin.java +++ b/src/main/java/io/github/rypofalem/armorstandeditor/ArmorStandEditorPlugin.java @@ -85,7 +85,7 @@ public void onEnable(){ hasSpigot = true; try { - Class.forName("org.spigotmc.package-info", false, this.getClassLoader()); + Class.forName("org.spigotmc.SpigotConfig", false, this.getClassLoader()); } catch (ClassNotFoundException e) { hasSpigot = false; }