1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-30 21:07:48 +01:00

WildStacker fix

This commit is contained in:
Zrips 2021-11-29 16:47:44 +02:00
parent 71d24aa7dc
commit dd955ec79e

View File

@ -3,17 +3,20 @@ package com.gamingmesh.jobs.hooks.wildStacker;
import java.util.List;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import com.bgsoftware.wildstacker.api.WildStackerAPI;
import com.bgsoftware.wildstacker.api.objects.StackedEntity;
public class WildStackerHandler {
public boolean isStackedEntity(LivingEntity entity) {
return WildStackerAPI.getStackedEntity(entity) != null;
}
public boolean isStackedEntity(LivingEntity entity) {
if (entity instanceof Player)
return false;
return WildStackerAPI.getStackedEntity(entity) != null;
}
public List<StackedEntity> getStackedEntities() {
return WildStackerAPI.getWildStacker().getSystemManager().getStackedEntities();
}
public List<StackedEntity> getStackedEntities() {
return WildStackerAPI.getWildStacker().getSystemManager().getStackedEntities();
}
}