Moved Xray off to an extension

This commit is contained in:
Auxilor 2020-12-30 12:30:27 +00:00
parent d919a079cb
commit 0f531665b1
7 changed files with 31 additions and 4 deletions

View File

@ -226,7 +226,6 @@ import com.willfp.ecoenchants.enchantments.ecoenchants.spell.Dynamite;
import com.willfp.ecoenchants.enchantments.ecoenchants.spell.Missile;
import com.willfp.ecoenchants.enchantments.ecoenchants.spell.Quake;
import com.willfp.ecoenchants.enchantments.ecoenchants.spell.Vitalize;
import com.willfp.ecoenchants.enchantments.ecoenchants.spell.Xray;
import com.willfp.ecoenchants.enchantments.meta.EnchantmentType;
import lombok.experimental.UtilityClass;
import org.bukkit.NamespacedKey;
@ -470,7 +469,6 @@ public class EcoEnchants {
public static final EcoEnchant CHARGE = new Charge();
public static final EcoEnchant ASCEND = new Ascend();
public static final EcoEnchant ARBORIST = new Arborist();
public static final EcoEnchant XRAY = new Xray();
/**
* Get all registered {@link EcoEnchant}s.

View File

@ -0,0 +1,7 @@
group 'com.willfp'
version '1.0.0'
description = 'Xray Extension'
jar {
archiveFileName = project.getDescription() + " v" + project.version + ".jar"
}

View File

@ -1,4 +1,4 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.spell;
package com.willfp.ecoenchants.xray;
import com.willfp.eco.util.TeamUtils;
import com.willfp.ecoenchants.enchantments.EcoEnchants;

View File

@ -0,0 +1,18 @@
package com.willfp.ecoenchants.xray;
import com.willfp.eco.util.extensions.Extension;
import com.willfp.ecoenchants.enchantments.EcoEnchant;
public class XrayMain extends Extension {
public static final EcoEnchant XRAY = new Xray();
@Override
public void onEnable() {
// Handled by super
}
@Override
public void onDisable() {
// Handled by super
}
}

View File

@ -0,0 +1,3 @@
name: Xray
main: com.willfp.ecoenchants.xray.XrayMain
version: ${projectVersion}

View File

@ -22,4 +22,5 @@ include ':eco-extensions:firewand'
//include ':eco-extensions:mmo'
include ':eco-extensions:precision'
include ':eco-extensions:sprint-artifacts'
include ':eco-extensions:summoning'
include ':eco-extensions:summoning'
include ':eco-extensions:xray'