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