mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-02-05 15:55:28 +01:00
Ecloud fix
This commit is contained in:
parent
8e2165bb8a
commit
2b53e3913f
@ -55,7 +55,7 @@ public final class PlaceholderAPIPlugin extends JavaPlugin {
|
||||
|
||||
@NotNull
|
||||
private static final Version VERSION;
|
||||
private static TaskScheduler SCHEDULER;
|
||||
private static TaskScheduler scheduler;
|
||||
private static PlaceholderAPIPlugin instance;
|
||||
|
||||
static {
|
||||
@ -144,7 +144,7 @@ public final class PlaceholderAPIPlugin extends JavaPlugin {
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
SCHEDULER = UniversalScheduler.getScheduler(this);
|
||||
scheduler = UniversalScheduler.getScheduler(this);
|
||||
|
||||
setupCommand();
|
||||
setupMetrics();
|
||||
@ -220,7 +220,7 @@ public final class PlaceholderAPIPlugin extends JavaPlugin {
|
||||
}
|
||||
|
||||
public static TaskScheduler getScheduler() {
|
||||
return SCHEDULER;
|
||||
return scheduler;
|
||||
}
|
||||
|
||||
private void setupCommand() {
|
||||
|
@ -201,11 +201,9 @@ public final class CloudExpansionManager {
|
||||
}
|
||||
|
||||
// loop through what's left on the main thread
|
||||
plugin
|
||||
.getServer()
|
||||
PlaceholderAPIPlugin
|
||||
.getScheduler()
|
||||
.runTask(
|
||||
plugin,
|
||||
() -> {
|
||||
try {
|
||||
for (Map.Entry<String, CloudExpansion> entry : values.entrySet()) {
|
||||
|
Loading…
Reference in New Issue
Block a user