1.0.0-SNAPSHOT-U204

+ Updated the create new boss entity to have a default targeting
This commit is contained in:
Charles 2019-01-22 20:29:47 +08:00
parent b2fd40eb1c
commit 7ec14ec2a1
3 changed files with 4 additions and 3 deletions

View File

@ -381,7 +381,7 @@ public class BossAPI {
MessagesElement messagesElement = new MessagesElement(new OnSpawnMessageElement("", -1), new OnDeathMessageElement("", "", -1, 5), new TauntElement(60, 100, new ArrayList<>()));
CommandsElement commandsElement = new CommandsElement("", "");
BossEntity bossEntity = new BossEntity(true, null, false, 100.0, entityStatsElements, skillsElement, dropsElement, messagesElement, commandsElement);
BossEntity bossEntity = new BossEntity(true, null, "RandomNearby", false, 100.0, entityStatsElements, skillsElement, dropsElement, messagesElement, commandsElement);
boolean result = PLUGIN.getBossEntityContainer().saveData(name, bossEntity);
if (!result) {

View File

@ -27,9 +27,10 @@ public class BossEntity {
@Expose @Getter private final SkillsElement skills;
@Expose @Getter private final DropsElement drops;
public BossEntity(boolean editing, String spawnItem, boolean buyable, Double price, List<EntityStatsElement> entityStats, SkillsElement skills, DropsElement drops, MessagesElement messages, CommandsElement commands) {
public BossEntity(boolean editing, String spawnItem, String targeting, boolean buyable, Double price, List<EntityStatsElement> entityStats, SkillsElement skills, DropsElement drops, MessagesElement messages, CommandsElement commands) {
this.editing = editing;
this.entityStats = entityStats;
this.targeting = targeting;
this.spawnItem = spawnItem;
this.skills = skills;
this.drops = drops;

View File

@ -19,7 +19,7 @@
</modules>
<properties>
<plugin.version>1.0.0-U203</plugin.version>
<plugin.version>1.0.0-U204</plugin.version>
<plugin.name>EpicBosses</plugin.name>
<plugin.main>com.songoda.epicbosses.CustomBosses</plugin.main>
<plugin.author>AMinecraftDev</plugin.author>