mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-02-05 15:55:28 +01:00
1 thread for cloud
This commit is contained in:
parent
e97cbbc4f8
commit
3d72701d1a
@ -263,7 +263,7 @@ public final class PlaceholderAPIPlugin extends JavaPlugin {
|
||||
new ServerLoadEventListener(this);
|
||||
} catch (final ClassNotFoundException ignored) {
|
||||
Bukkit.getScheduler()
|
||||
.runTaskLater(this, () -> getLocalExpansionManager().load(Bukkit.getConsoleSender()), 1);
|
||||
.runTaskLater(this, () -> getLocalExpansionManager().load(Bukkit.getConsoleSender()), 1L);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -81,8 +81,9 @@ public final class CloudExpansionManager {
|
||||
private final Map<String, CompletableFuture<File>> await = new ConcurrentHashMap<>();
|
||||
|
||||
private final ExecutorService ASYNC_EXECUTOR =
|
||||
Executors.newCachedThreadPool(
|
||||
new ThreadFactoryBuilder().setNameFormat("placeholderapi-io-#%1$d").build());
|
||||
Executors.newSingleThreadExecutor(
|
||||
new ThreadFactoryBuilder().setNameFormat("placeholderapi-cloud").build()
|
||||
);
|
||||
|
||||
public CloudExpansionManager(@NotNull final PlaceholderAPIPlugin plugin) {
|
||||
this.plugin = plugin;
|
||||
|
Loading…
Reference in New Issue
Block a user