This commit is contained in:
t00thpick1 2014-08-08 00:01:57 -04:00
parent f097aa4a67
commit 0ea163e3ee

View File

@ -23,6 +23,11 @@ public class PlayerProfileLoadingTask extends BukkitRunnable {
this.player = player; this.player = player;
} }
private PlayerProfileLoadingTask(Player player, int attempt) {
this.player = player;
this.attempt = attempt;
}
// WARNING: ASYNC TASK // WARNING: ASYNC TASK
// DO NOT MODIFY THE McMMOPLAYER FROM THIS CODE // DO NOT MODIFY THE McMMOPLAYER FROM THIS CODE
@Override @Override
@ -50,7 +55,7 @@ public class PlayerProfileLoadingTask extends BukkitRunnable {
player.sendMessage(LocaleLoader.getString("Profile.Loading.Failure").split("\n")); player.sendMessage(LocaleLoader.getString("Profile.Loading.Failure").split("\n"));
return; return;
} }
this.runTaskLaterAsynchronously(mcMMO.p, 100 * attempt); new PlayerProfileLoadingTask(player, attempt).runTaskLaterAsynchronously(mcMMO.p, 100 * attempt);
} }
private class ApplySuccessfulProfile extends BukkitRunnable { private class ApplySuccessfulProfile extends BukkitRunnable {