Skip to content

Commit

Permalink
Check for implementation before finishing profile request
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Mar 16, 2016
1 parent 1dcd587 commit b0bffb9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ public ProfileFetchResult getResult() {
* The result of the request.
*/
void setResult(final @Nullable GameProfile profile, final ProfileFetchResult result) {
if (!CitizensAPI.hasImplementation())
return;
Bukkit.getScheduler().scheduleSyncDelayedTask(CitizensAPI.getPlugin(), new Runnable() {
@Override
public void run() {
Expand Down

0 comments on commit b0bffb9

Please sign in to comment.