Change to the newer, shorter scheduler methods.

This commit is contained in:
GJ
2013-03-20 02:15:15 -04:00
parent db2bf9ee51
commit c3a69c8c55
12 changed files with 19 additions and 19 deletions

View File

@ -336,7 +336,7 @@ public final class DatabaseManager {
if (connection != null && !connection.isClosed()) {
// Schedule a database save if we really had an outage
if (reconnectAttempt > 1) {
mcMMO.p.getServer().getScheduler().scheduleSyncDelayedTask(mcMMO.p, new SQLReconnectTask(), 5);
mcMMO.p.getServer().getScheduler().runTaskLater(mcMMO.p, new SQLReconnectTask(), 5);
}
nextReconnectTimestamp = 0;
reconnectAttempt = 0;