mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 11:15:21 +01:00
Avoid shutdown exception due to bukkit 'improvements'
This commit is contained in:
parent
7c6e660cf0
commit
99ea38d02a
@ -242,7 +242,10 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
|
||||
}
|
||||
@Override
|
||||
public <T> Future<T> callSyncMethod(Callable<T> task) {
|
||||
if(DynmapPlugin.this.isEnabled())
|
||||
return getServer().getScheduler().callSyncMethod(DynmapPlugin.this, task);
|
||||
else
|
||||
return null;
|
||||
}
|
||||
@Override
|
||||
public String getServerName() {
|
||||
@ -472,6 +475,9 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
|
||||
return exhausted;
|
||||
}
|
||||
});
|
||||
if (f == null) {
|
||||
return null;
|
||||
}
|
||||
Boolean delay;
|
||||
try {
|
||||
delay = f.get();
|
||||
|
Loading…
Reference in New Issue
Block a user