Things ^_^
This commit is contained in:
parent
ebd3fbe6d5
commit
d6c8e51104
@ -4,6 +4,7 @@ import java.util.AbstractMap.SimpleEntry;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import mineplex.core.common.util.C;
|
import mineplex.core.common.util.C;
|
||||||
import mineplex.core.common.util.F;
|
import mineplex.core.common.util.F;
|
||||||
@ -24,6 +25,7 @@ import mineplex.core.updater.UpdateType;
|
|||||||
import mineplex.core.updater.event.UpdateEvent;
|
import mineplex.core.updater.event.UpdateEvent;
|
||||||
import mineplex.minecraft.game.core.combat.CombatComponent;
|
import mineplex.minecraft.game.core.combat.CombatComponent;
|
||||||
import mineplex.minecraft.game.core.combat.CombatManager.AttackReason;
|
import mineplex.minecraft.game.core.combat.CombatManager.AttackReason;
|
||||||
|
import mineplex.minecraft.game.core.combat.DeathMessageType;
|
||||||
import mineplex.minecraft.game.core.combat.event.CombatDeathEvent;
|
import mineplex.minecraft.game.core.combat.event.CombatDeathEvent;
|
||||||
import mineplex.minecraft.game.core.condition.Condition.ConditionType;
|
import mineplex.minecraft.game.core.condition.Condition.ConditionType;
|
||||||
import mineplex.minecraft.game.core.condition.ConditionActive;
|
import mineplex.minecraft.game.core.condition.ConditionActive;
|
||||||
@ -146,8 +148,6 @@ public class Evolution extends SoloGame
|
|||||||
|
|
||||||
CreatureAllow = false;
|
CreatureAllow = false;
|
||||||
|
|
||||||
DeathMessages = false;
|
|
||||||
|
|
||||||
InventoryClick = false;
|
InventoryClick = false;
|
||||||
|
|
||||||
InventoryOpenBlock = false;
|
InventoryOpenBlock = false;
|
||||||
@ -406,6 +406,8 @@ public class Evolution extends SoloGame
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void onKill(CombatDeathEvent event)
|
public void onKill(CombatDeathEvent event)
|
||||||
{
|
{
|
||||||
|
event.SetBroadcastType(DeathMessageType.Simple);
|
||||||
|
|
||||||
if (!IsLive())
|
if (!IsLive())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -723,7 +725,7 @@ public class Evolution extends SoloGame
|
|||||||
ArrayList<EvoToken> tokens = new ArrayList<EvoToken>(_tokens.values());
|
ArrayList<EvoToken> tokens = new ArrayList<EvoToken>(_tokens.values());
|
||||||
Collections.sort(tokens);
|
Collections.sort(tokens);
|
||||||
|
|
||||||
ArrayList<Player> players = new ArrayList<Player>();
|
List<Player> players = new ArrayList<Player>();
|
||||||
|
|
||||||
for (int i = 0 ; i < tokens.size() ; i++)
|
for (int i = 0 ; i < tokens.size() ; i++)
|
||||||
{
|
{
|
||||||
@ -745,6 +747,9 @@ public class Evolution extends SoloGame
|
|||||||
if (player.isOnline())
|
if (player.isOnline())
|
||||||
AddGems(player, 10, "Participation", false, false);
|
AddGems(player, 10, "Participation", false, false);
|
||||||
|
|
||||||
|
if (tokens.size() >= 1)
|
||||||
|
players = players.subList(0, 1);
|
||||||
|
|
||||||
_tokens.clear();
|
_tokens.clear();
|
||||||
_evoPlatforms.clear();
|
_evoPlatforms.clear();
|
||||||
_evolutionsAvailable.clear();
|
_evolutionsAvailable.clear();
|
||||||
|
@ -39,7 +39,7 @@ public class NoMeleeTracker extends StatTracker<Evolution>
|
|||||||
if (!getGame().IsAlive(player))
|
if (!getGame().IsAlive(player))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (event.GetReason() == null || event.GetReason().contains("Attack"))
|
if (event.GetReason() == null || event.GetReason().trim().equals("") || event.GetReason().contains("Attack"))
|
||||||
{
|
{
|
||||||
if (!_out.contains(player.getName()))
|
if (!_out.contains(player.getName()))
|
||||||
_out.add(player.getName());
|
_out.add(player.getName());
|
||||||
|
Loading…
Reference in New Issue
Block a user