mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 14:16:45 +01:00
24 lines
714 B
Java
24 lines
714 B
Java
|
package com.gmail.nossr50.runnables.skills;
|
||
|
|
||
|
import com.gmail.nossr50.datatypes.BlockSnapshot;
|
||
|
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
||
|
import org.bukkit.scheduler.BukkitRunnable;
|
||
|
|
||
|
import java.util.ArrayList;
|
||
|
|
||
|
public class DelayedHerbalismXPCheckTask extends BukkitRunnable {
|
||
|
|
||
|
private final McMMOPlayer mcMMOPlayer;
|
||
|
private final ArrayList<BlockSnapshot> chorusBlocks;
|
||
|
|
||
|
public DelayedHerbalismXPCheckTask(McMMOPlayer mcMMOPlayer, ArrayList<BlockSnapshot> chorusBlocks) {
|
||
|
this.mcMMOPlayer = mcMMOPlayer;
|
||
|
this.chorusBlocks = chorusBlocks;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void run() {
|
||
|
mcMMOPlayer.getHerbalismManager().awardXPForBlockSnapshots(chorusBlocks);
|
||
|
}
|
||
|
}
|