Refactored Main to EcoEnchantsPlugin

This commit is contained in:
Auxilor
2020-08-29 11:29:19 +01:00
parent 0dd53c6fef
commit 87669de08a
49 changed files with 166 additions and 166 deletions

View File

@@ -3,7 +3,7 @@ package com.willfp.ecoenchants.display;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.events.PacketAdapter;
import com.comphenix.protocol.events.PacketEvent;
import com.willfp.ecoenchants.Main;
import com.willfp.ecoenchants.EcoEnchantsPlugin;
import org.bukkit.inventory.MerchantRecipe;
import java.util.Arrays;
@@ -19,7 +19,7 @@ public class DisplayPacketAdapter extends PacketAdapter {
);
public DisplayPacketAdapter() {
super(Main.getInstance(), packets);
super(EcoEnchantsPlugin.getInstance(), packets);
}
@Override

View File

@@ -1,7 +1,7 @@
package com.willfp.ecoenchants.display;
import com.google.common.collect.Lists;
import com.willfp.ecoenchants.Main;
import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.config.ConfigManager;
import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchants;
@@ -30,12 +30,12 @@ public class EnchantDisplay {
/**
* The meta key of the length of enchantments in lore
*/
private static final NamespacedKey key = new NamespacedKey(Main.getInstance(), "ecoenchantlore-len");
private static final NamespacedKey key = new NamespacedKey(EcoEnchantsPlugin.getInstance(), "ecoenchantlore-len");
/**
* The meta key to hide enchantments in lore
*/
public static final NamespacedKey keySkip = new NamespacedKey(Main.getInstance(), "ecoenchantlore-skip");
public static final NamespacedKey keySkip = new NamespacedKey(EcoEnchantsPlugin.getInstance(), "ecoenchantlore-skip");
private static String normalColor;