9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-28 19:39:10 +00:00

Removed spawn egg

This commit is contained in:
Auxilor
2021-03-12 21:37:11 +00:00
parent c32e283cce
commit 9566020a9c
2 changed files with 4 additions and 14 deletions

View File

@@ -2,7 +2,6 @@ package com.willfp.ecobosses.bosses;
import com.willfp.eco.internal.config.AbstractUndefinedConfig;
import com.willfp.eco.util.NumberUtils;
import com.willfp.eco.util.StringUtils;
import com.willfp.eco.util.internal.PluginDependent;
import com.willfp.eco.util.plugin.AbstractEcoPlugin;
import com.willfp.ecobosses.bosses.util.bosstype.BossEntityUtils;
@@ -32,7 +31,6 @@ import org.bukkit.entity.EntityType;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.SpawnEggMeta;
import org.bukkit.persistence.PersistentDataType;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
@@ -147,12 +145,6 @@ public class EcoBoss extends PluginDependent {
@Getter
private final boolean attackOnInjure;
/**
* The ItemStack for the spawn egg.
*/
@Getter
private final ItemStack spawnEgg;
/**
* Sounds played on injure.
*/
@@ -321,6 +313,7 @@ public class EcoBoss extends PluginDependent {
}
// Spawn egg
/*
Material eggMaterial = Material.matchMaterial(this.getConfig().getString("spawn-egg.egg-material").toUpperCase());
assert eggMaterial != null;
this.spawnEgg = new ItemStack(eggMaterial);
@@ -335,6 +328,8 @@ public class EcoBoss extends PluginDependent {
meta.getPersistentDataContainer().set(this.getPlugin().getNamespacedKeyFactory().create("spawn_egg"), PersistentDataType.STRING, this.getName());
this.spawnEgg.setItemMeta(meta);
*/
// Teleportation
this.teleportationEnabled = this.getConfig().getBool("defence.teleport.enabled");
this.teleportOptions = new TeleportOptions(

View File

@@ -3,11 +3,6 @@ enabled: true
name: "Illusioner" # Display name
base-mob: custom_illusioner # Any existing mob - custom_illusioner is also accepted (like in the old Illusioner plugin)
spawn-egg:
egg-material: squid_spawn_egg
display-name: "Illusioner Spawn Egg"
lore: []
bossbar:
enabled: true
color: BLUE # Choose from: BLUE, GREEN, PINK, PURPLE, RED, WHITE, YELLOW
@@ -20,7 +15,7 @@ spawn-totem:
enabled: true
top: carved_pumpkin
middle: beacon
bottom: diamond
bottom: diamond_block
rewards:
xp: