1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-30 21:07:48 +01:00

Added one more try clause to make sure adventure is from paper

This commit is contained in:
montlikadani 2021-06-10 11:21:30 +02:00
parent 018edee7bf
commit b55af27db2

View File

@ -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();