diff --git a/src/main/java/com/gamingmesh/jobs/Jobs.java b/src/main/java/com/gamingmesh/jobs/Jobs.java index 2e966906..0e3f5b15 100644 --- a/src/main/java/com/gamingmesh/jobs/Jobs.java +++ b/src/main/java/com/gamingmesh/jobs/Jobs.java @@ -711,8 +711,9 @@ public class Jobs extends JavaPlugin { try { Class.forName("net.kyori.adventure.text.Component"); + org.bukkit.inventory.meta.ItemMeta.class.getDeclaredMethod("displayName"); kyoriSupported = true; - } catch (ClassNotFoundException e) { + } catch (NoSuchMethodException | ClassNotFoundException e) { } placeholderAPIEnabled = setupPlaceHolderAPI();