mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Lazy fix
This commit is contained in:
parent
f097aa4a67
commit
0ea163e3ee
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user