Reverted module changes

This commit is contained in:
Auxilor 2020-12-11 19:50:39 +00:00
parent 43c0a8772e
commit fad395b2fb
7 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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();

View File

@ -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)

View File

@ -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

View File

@ -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
);
}

View File

@ -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;
}