Add option to disable background caching

This commit is contained in:
Alexander Söderberg
2020-07-03 13:50:12 +02:00
parent 0e7a6d7a62
commit 429f5e55c3
2 changed files with 7 additions and 1 deletions

View File

@ -353,7 +353,10 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain<
}
impromptuPipeline.storeImmediately("*", DBFunc.EVERYONE);
this.startUuidCaching(sqLiteUUIDService, cacheUUIDService);
if (Settings.UUID.BACKGROUND_CACHING_ENABLED) {
this.startUuidCaching(sqLiteUUIDService, cacheUUIDService);
}
if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
new Placeholders().register();