mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-07 03:00:29 +01:00
Fix for old Paper versions
This commit is contained in:
parent
e332b8aea9
commit
2b41236439
@ -118,7 +118,12 @@ public class SkyBlock extends SongodaPlugin {
|
||||
}
|
||||
|
||||
if(paper = ServerProject.isServer(ServerProject.PAPER)){
|
||||
paperAsync = Bukkit.spigot().getPaperConfig().getBoolean("settings.async-chunks.enable", false);
|
||||
try {
|
||||
Bukkit.spigot().getClass().getMethod("getPaperConfig");
|
||||
paperAsync = Bukkit.spigot().getPaperConfig().getBoolean("settings.async-chunks.enable", false);
|
||||
} catch (NoSuchMethodException ignored) {
|
||||
paperAsync = false;
|
||||
}
|
||||
this.getLogger().info("Enabling Paper hooks");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user