diff --git a/TwosideKeeper.jar b/TwosideKeeper.jar index 8250dfe..4beaea5 100644 Binary files a/TwosideKeeper.jar and b/TwosideKeeper.jar differ diff --git a/src/plugin.yml b/src/plugin.yml index aa3f6a2..610da6b 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: TwosideKeeper main: sig.plugin.TwosideKeeper.TwosideKeeper -version: 3.8.2r1 +version: 3.8.2r2 commands: money: description: Tells the player the amount of money they are holding. diff --git a/src/sig/plugin/TwosideKeeper/EliteMonster.java b/src/sig/plugin/TwosideKeeper/EliteMonster.java index 88e2c74..e6afd95 100644 --- a/src/sig/plugin/TwosideKeeper/EliteMonster.java +++ b/src/sig/plugin/TwosideKeeper/EliteMonster.java @@ -74,6 +74,7 @@ public class EliteMonster { BossBar bar = null; List targetlist = new ArrayList(); + List participantlist = new ArrayList(); //Contains all functionality specific to Elite Monsters. //These are checked every 5 ticks, so have very high control over the monster itself. EliteMonster(Monster m) { @@ -277,6 +278,9 @@ public class EliteMonster { if (!targetlist.contains(damager) && (damager instanceof Player)) { targetlist.add((Player)damager); } + if (!participantlist.contains(damager) && (damager instanceof Player)) { + participantlist.add((Player)damager); + } if (damager instanceof Player) { Player p = (Player)damager; p.addPotionEffect(new PotionEffect(PotionEffectType.WEAKNESS,20*2,9),true); @@ -494,6 +498,10 @@ public class EliteMonster { return targetlist; } + public List getParticipantList() { + return participantlist; + } + public void randomlyTeleport() { Location l = getNearbyFreeLocation(m.getLocation(),24); m.teleport(l); diff --git a/src/sig/plugin/TwosideKeeper/TwosideKeeper.java b/src/sig/plugin/TwosideKeeper/TwosideKeeper.java index 214357e..3517806 100644 --- a/src/sig/plugin/TwosideKeeper/TwosideKeeper.java +++ b/src/sig/plugin/TwosideKeeper/TwosideKeeper.java @@ -4658,7 +4658,7 @@ public class TwosideKeeper extends JavaPlugin implements Listener { dropmult+=50; EliteMonster em = GenericFunctions.getEliteMonster(m); //For each target, drop additional loot and exp. - List participants = em.getTargetList(); + List participants = em.getParticipantList(); StringBuilder participants_list = new StringBuilder(); for (int i=0;i