mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56: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
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user