Check for implementation before finishing profile request

This commit is contained in:
fullwall 2016-03-16 20:07:09 +08:00
parent 221584b075
commit f9ffd83635

View File

@ -105,6 +105,8 @@ public class ProfileRequest {
* 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() {