mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-30 22:24:06 +01:00
Fix v1.2.5 support, broken by API change in metrics
This commit is contained in:
parent
56d1bcf3eb
commit
44c5d51c4e
@ -220,6 +220,7 @@ public class Metrics {
|
||||
}
|
||||
|
||||
// Begin hitting the server with glorious data
|
||||
try {
|
||||
task = plugin.getServer().getScheduler().runTaskTimerAsynchronously(plugin, new Runnable() {
|
||||
|
||||
private boolean firstPost = true;
|
||||
@ -254,6 +255,10 @@ public class Metrics {
|
||||
}
|
||||
}
|
||||
}, 0, PING_INTERVAL * 1200);
|
||||
} catch (NoSuchMethodError nsme) {
|
||||
// Handle deprecated scheduler API stupidity
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user