mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Hide loading messages when at the first attempt
This commit is contained in:
parent
635f2bdb43
commit
216ecc465d
@ -47,7 +47,7 @@ public class PlayerProfileLoadingTask extends BukkitRunnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Send the message that we're doing the recovery
|
// Send the message that we're doing the recovery
|
||||||
if (attempt == 0) {
|
if (attempt > 0) {
|
||||||
player.sendMessage(LocaleLoader.getString("Profile.Loading.Start"));
|
player.sendMessage(LocaleLoader.getString("Profile.Loading.Start"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,10 +94,13 @@ public class PlayerProfileLoadingTask extends BukkitRunnable {
|
|||||||
|
|
||||||
McMMOPlayer mcMMOPlayer = new McMMOPlayer(player, profile);
|
McMMOPlayer mcMMOPlayer = new McMMOPlayer(player, profile);
|
||||||
UserManager.track(mcMMOPlayer);
|
UserManager.track(mcMMOPlayer);
|
||||||
player.sendMessage(LocaleLoader.getString("Profile.Loading.Success"));
|
|
||||||
mcMMOPlayer.actualizeRespawnATS();
|
mcMMOPlayer.actualizeRespawnATS();
|
||||||
ScoreboardManager.setupPlayer(player);
|
ScoreboardManager.setupPlayer(player);
|
||||||
|
|
||||||
|
if (attempt > 0) {
|
||||||
|
player.sendMessage(LocaleLoader.getString("Profile.Loading.Success"));
|
||||||
|
}
|
||||||
|
|
||||||
if (Config.getInstance().getShowStatsAfterLogin()) {
|
if (Config.getInstance().getShowStatsAfterLogin()) {
|
||||||
ScoreboardManager.enablePlayerStatsScoreboard(player);
|
ScoreboardManager.enablePlayerStatsScoreboard(player);
|
||||||
new McScoreboardKeepTask(player).runTaskLater(mcMMO.p, 1 * Misc.TICK_CONVERSION_FACTOR);
|
new McScoreboardKeepTask(player).runTaskLater(mcMMO.p, 1 * Misc.TICK_CONVERSION_FACTOR);
|
||||||
|
Loading…
Reference in New Issue
Block a user