mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2025-01-06 08:18:42 +01:00
Final harsh way to fix the ambiguity???
This commit is contained in:
parent
11a86b1445
commit
bf1890c392
@ -20,6 +20,7 @@ import org.bukkit.World;
|
|||||||
import org.bukkit.inventory.Inventory;
|
import org.bukkit.inventory.Inventory;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
|
import org.bukkit.scheduler.BukkitTask;
|
||||||
import world.bentobox.challenges.commands.admin.SurroundChallengeBuilder;
|
import world.bentobox.challenges.commands.admin.SurroundChallengeBuilder;
|
||||||
import world.bentobox.challenges.objects.ChallengeLevels;
|
import world.bentobox.challenges.objects.ChallengeLevels;
|
||||||
import world.bentobox.challenges.objects.Challenges;
|
import world.bentobox.challenges.objects.Challenges;
|
||||||
@ -390,7 +391,7 @@ public class ChallengesManager {
|
|||||||
*/
|
*/
|
||||||
public void save(boolean async) {
|
public void save(boolean async) {
|
||||||
if (async) {
|
if (async) {
|
||||||
addon.getServer().getScheduler().runTaskAsynchronously(addon.getPlugin(), new Runnable() {
|
BukkitTask task = addon.getServer().getScheduler().runTaskAsynchronously(addon.getPlugin(), new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
save();
|
save();
|
||||||
|
Loading…
Reference in New Issue
Block a user