From 216ecc465d39d1a95f7ee175fa7ad503398881c4 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Thu, 31 Jul 2014 22:06:42 +0200 Subject: [PATCH] Hide loading messages when at the first attempt --- .../nossr50/runnables/player/PlayerProfileLoadingTask.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/runnables/player/PlayerProfileLoadingTask.java b/src/main/java/com/gmail/nossr50/runnables/player/PlayerProfileLoadingTask.java index 5b8990265..a1b0babfc 100644 --- a/src/main/java/com/gmail/nossr50/runnables/player/PlayerProfileLoadingTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/player/PlayerProfileLoadingTask.java @@ -47,7 +47,7 @@ public class PlayerProfileLoadingTask extends BukkitRunnable { } // Send the message that we're doing the recovery - if (attempt == 0) { + if (attempt > 0) { player.sendMessage(LocaleLoader.getString("Profile.Loading.Start")); } @@ -94,10 +94,13 @@ public class PlayerProfileLoadingTask extends BukkitRunnable { McMMOPlayer mcMMOPlayer = new McMMOPlayer(player, profile); UserManager.track(mcMMOPlayer); - player.sendMessage(LocaleLoader.getString("Profile.Loading.Success")); mcMMOPlayer.actualizeRespawnATS(); ScoreboardManager.setupPlayer(player); + if (attempt > 0) { + player.sendMessage(LocaleLoader.getString("Profile.Loading.Success")); + } + if (Config.getInstance().getShowStatsAfterLogin()) { ScoreboardManager.enablePlayerStatsScoreboard(player); new McScoreboardKeepTask(player).runTaskLater(mcMMO.p, 1 * Misc.TICK_CONVERSION_FACTOR);