Refactored Main to EcoEnchantsPlugin
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user