Fixed Ice Shot

Changed Integration Loading
Fixed Artifact Target
This commit is contained in:
Auxilor 2020-08-29 11:47:31 +01:00
parent 87669de08a
commit 3cff9f68b8
4 changed files with 3 additions and 6 deletions

View File

@ -4,5 +4,5 @@ import org.bukkit.block.Block;
import org.bukkit.entity.Player;
public interface BlockBreakWrapper {
public void breakBlock(Player player, Block block);
void breakBlock(Player player, Block block);
}

View File

@ -35,7 +35,7 @@ public abstract class Artifact extends EcoEnchant {
}
protected Artifact(String key, double version, Particle particle, Particle.DustOptions extra) {
super(new EcoEnchantBuilder(key, EnchantmentType.ARTIFACT, new Target.Applicable[]{Target.Applicable.ELYTRA, Target.Applicable.SWORD, Target.Applicable.AXE, Target.Applicable.PICKAXE}, version));
super(new EcoEnchantBuilder(key, EnchantmentType.ARTIFACT, new Target.Applicable[]{Target.Applicable.ELYTRA, Target.Applicable.SWORD, Target.Applicable.AXE, Target.Applicable.PICKAXE, Target.Applicable.BOW, Target.Applicable.CROSSBOW}, version));
this.particle = particle;
this.extra = extra;
}

View File

@ -37,7 +37,7 @@ public class IceShot extends EcoEnchant {
LivingEntity victim = (LivingEntity) event.getEntity();
if(!AntigriefManager.canInjure(player, (Player) event.getEntity())) return;
if(!AntigriefManager.canInjure(player, victim)) return;
if(event.isCancelled()) return;

View File

@ -147,9 +147,6 @@ public class Loader {
if(EcoEnchantsPlugin.hasEssentials) Bukkit.getLogger().info("Essentials: §aENABLED");
else Bukkit.getLogger().info("Essentials: §9DISABLED");
Bukkit.getLogger().info("");
Bukkit.getLogger().info("Loading Anticheat Integrations...");
if(Bukkit.getPluginManager().isPluginEnabled("AAC")) {
AnticheatManager.registerAnticheat(new AnticheatAAC());
Bukkit.getLogger().info("AAC: §aENABLED");