Skip to content

Commit

Permalink
Quick update.
Browse files Browse the repository at this point in the history
  • Loading branch information
HmmmQuestionMark committed Mar 30, 2014
1 parent f171e68 commit 7dad23f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.google.common.collect.Collections2;
import com.google.common.collect.Iterables;
import com.google.common.collect.Sets;
import net.minecraft.util.io.netty.util.concurrent.BlockingOperationException;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.GameMode;
Expand Down Expand Up @@ -190,9 +191,10 @@ public void run()
}
}

public OfflinePlayer getBukkitOfflinePlayer()
// TODO Fix this so it doesn't run on the main thread.
public OfflinePlayer getBukkitOfflinePlayer() throws BlockingOperationException
{
return Bukkit.getOfflinePlayer(playerName);
return Bukkit.getOfflinePlayer(MojangIdProvider.toUUID(mojangAccount));
}

public void setLastLoginTime(Long time)
Expand Down

0 comments on commit 7dad23f

Please sign in to comment.