Fix formatting

This commit is contained in:
TfT_02 2014-07-31 22:04:53 +02:00
parent 2286728308
commit 635f2bdb43

View File

@ -32,9 +32,11 @@ public class PlayerProfileLoadingTask extends BukkitRunnable {
@Override @Override
public void run() { public void run() {
lock.lock(); lock.lock();
if (this.cancelled) { if (this.cancelled) {
return; return;
} }
// Quit if they logged out // Quit if they logged out
if (!player.isOnline()) { if (!player.isOnline()) {
mcMMO.p.getLogger().info("Aborting profile loading recovery for " + player.getName() + " - player logged out"); mcMMO.p.getLogger().info("Aborting profile loading recovery for " + player.getName() + " - player logged out");
@ -89,11 +91,13 @@ public class PlayerProfileLoadingTask extends BukkitRunnable {
mcMMO.p.getLogger().info("Aborting profile loading recovery for " + player.getName() + " - player logged out"); mcMMO.p.getLogger().info("Aborting profile loading recovery for " + player.getName() + " - player logged out");
return; return;
} }
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")); player.sendMessage(LocaleLoader.getString("Profile.Loading.Success"));
mcMMOPlayer.actualizeRespawnATS(); mcMMOPlayer.actualizeRespawnATS();
ScoreboardManager.setupPlayer(player); ScoreboardManager.setupPlayer(player);
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);