mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
Fixed Ice Shot
Changed Integration Loading Fixed Artifact Target
This commit is contained in:
parent
87669de08a
commit
3cff9f68b8
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user