Hide loading messages when at the first attempt

This commit is contained in:
TfT_02 2014-07-31 22:06:42 +02:00
parent 635f2bdb43
commit 216ecc465d

View File

@ -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);