Skip to content

Commit

Permalink
Final harsh way to fix the ambiguity???
Browse files Browse the repository at this point in the history
  • Loading branch information
Poslovitch committed Dec 30, 2018
1 parent 11a86b1 commit bf1890c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;

import org.bukkit.scheduler.BukkitTask;
import world.bentobox.challenges.commands.admin.SurroundChallengeBuilder;
import world.bentobox.challenges.objects.ChallengeLevels;
import world.bentobox.challenges.objects.Challenges;
Expand Down Expand Up @@ -390,7 +391,7 @@ private void savePlayer(UUID playerUUID) {
*/
public void save(boolean async) {
if (async) {
addon.getServer().getScheduler().runTaskAsynchronously(addon.getPlugin(), new Runnable() {
BukkitTask task = addon.getServer().getScheduler().runTaskAsynchronously(addon.getPlugin(), new Runnable() {
@Override
public void run() {
save();
Expand Down

0 comments on commit bf1890c

Please sign in to comment.