mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 14:05:25 +01:00
Added one more try clause to make sure adventure is from paper
This commit is contained in:
parent
018edee7bf
commit
b55af27db2
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user