mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-12-26 20:27:38 +01:00
Reverted module changes
This commit is contained in:
parent
43c0a8772e
commit
fad395b2fb
@ -13,7 +13,7 @@ import org.bukkit.potion.PotionEffect;
|
||||
|
||||
public class Alchemy extends EcoEnchant {
|
||||
public Alchemy() {
|
||||
super("alchemy", EnchantmentType.NORMAL, AlchemyMain.getInstance());
|
||||
super("alchemy", EnchantmentType.NORMAL, AlchemyMain.class);
|
||||
}
|
||||
|
||||
private static final FixedMetadataValue TRUE = new FixedMetadataValue(EcoEnchantsPlugin.getInstance(), true);
|
||||
|
@ -12,7 +12,7 @@ import org.bukkit.event.entity.EntityDamageEvent;
|
||||
|
||||
public abstract class BiomesEnchantment extends EcoEnchant {
|
||||
protected BiomesEnchantment(String key, EnchantmentType type, Prerequisite... prerequisites) {
|
||||
super(key, type, BiomesMain.getInstance(), prerequisites);
|
||||
super(key, type, BiomesMain.class, prerequisites);
|
||||
}
|
||||
|
||||
public abstract boolean isValid(Biome biome);
|
||||
|
@ -13,7 +13,7 @@ import org.bukkit.potion.PotionEffectType;
|
||||
|
||||
public abstract class EffectsEnchantment extends EcoEnchant {
|
||||
protected EffectsEnchantment(String key, EnchantmentType type, Prerequisite... prerequisites) {
|
||||
super(key, type, EffectsMain.getInstance(), prerequisites);
|
||||
super(key, type, EffectsMain.class, prerequisites);
|
||||
}
|
||||
|
||||
public abstract PotionEffectType getPotionEffect();
|
||||
|
@ -18,7 +18,7 @@ import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class Endershot extends EcoEnchant {
|
||||
public Endershot() {
|
||||
super("endershot", EnchantmentType.NORMAL, EndershotMain.getInstance());
|
||||
super("endershot", EnchantmentType.NORMAL, EndershotMain.class);
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.LOW)
|
||||
|
@ -14,7 +14,7 @@ import org.bukkit.metadata.FixedMetadataValue;
|
||||
|
||||
public class Firewand extends Spell {
|
||||
public Firewand() {
|
||||
super("firewand", FirewandMain.getInstance());
|
||||
super("firewand", FirewandMain.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -25,7 +25,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
||||
public class Precision extends EcoEnchant {
|
||||
public Precision() {
|
||||
super(
|
||||
"precision", EnchantmentType.SPECIAL, PrecisionMain.getInstance()
|
||||
"precision", EnchantmentType.SPECIAL, PrecisionMain.class
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ public abstract class SummoningEnchantment extends EcoEnchant {
|
||||
private final SummoningType summoningType;
|
||||
|
||||
protected SummoningEnchantment(String key, EnchantmentType type, SummoningType summoningType, Prerequisite... prerequisites) {
|
||||
super(key, type, SummoningMain.getInstance(), prerequisites);
|
||||
super(key, type, SummoningMain.class, prerequisites);
|
||||
|
||||
this.summoningType = summoningType;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user