feat: update plugin to spigot 1.21.1
Some checks failed
Build and Upload JAR / build (push) Failing after 17s
Some checks failed
Build and Upload JAR / build (push) Failing after 17s
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package dev.rawleenc.mineclass.utils;
|
||||
|
||||
import dev.rawleenc.mineclass.classes.MineClassFactory;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
|
||||
public class ApplyClassStatusTask extends BukkitRunnable {
|
||||
|
||||
private final Player player;
|
||||
|
||||
public ApplyClassStatusTask(Player player) {
|
||||
this.player = player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
MineClassFactory.getInstance()
|
||||
.getRightClass(player)
|
||||
.ifPresent(mineClass -> mineClass.reapplyEffects(player));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user