Fixed Async deprecation issues

This commit is contained in:
gmcferrin 2012-12-25 01:06:21 -05:00
parent 9af66a8e69
commit 07e98ab79f
3 changed files with 4 additions and 3 deletions

View File

@ -13,6 +13,7 @@ Version 1.3.13-dev
= Fixed issue with Mining using actual skill level rather than max skill level = Fixed issue with Mining using actual skill level rather than max skill level
= Fixed some issues with static access = Fixed some issues with static access
= Fixed ItemStack deprecation issues = Fixed ItemStack deprecation issues
= Fixed Async deprecation issues
! GJ stopped being a lazy slacker and got stuff done ! GJ stopped being a lazy slacker and got stuff done
- Removed dead code relating to null profiles - Removed dead code relating to null profiles
- Removed unused imports - Removed unused imports

View File

@ -46,6 +46,6 @@ public class MmoupdateCommand implements CommandExecutor {
return; return;
} }
plugin.getServer().getScheduler().scheduleAsyncDelayedTask(plugin, new SQLConversionTask(plugin), 1); plugin.getServer().getScheduler().runTaskLaterAsynchronously(plugin, new SQLConversionTask(plugin), 1);
} }
} }

View File

@ -221,7 +221,7 @@ public class Metrics {
} }
// Begin hitting the server with glorious data // Begin hitting the server with glorious data
taskId = plugin.getServer().getScheduler().scheduleAsyncRepeatingTask(plugin, new Runnable() { taskId = plugin.getServer().getScheduler().runTaskTimerAsynchronously(plugin, new Runnable() {
private boolean firstPost = true; private boolean firstPost = true;
@ -249,7 +249,7 @@ public class Metrics {
Bukkit.getLogger().log(Level.INFO, "[Metrics] " + e.getMessage()); Bukkit.getLogger().log(Level.INFO, "[Metrics] " + e.getMessage());
} }
} }
}, 0, PING_INTERVAL * 1200); }, 0, PING_INTERVAL * 1200).getTaskId();
return true; return true;
} }