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.Collections;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
import mineplex.core.common.util.C;
|
||||
import mineplex.core.common.util.F;
|
||||
@ -24,6 +25,7 @@ import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
import mineplex.minecraft.game.core.combat.CombatComponent;
|
||||
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.condition.Condition.ConditionType;
|
||||
import mineplex.minecraft.game.core.condition.ConditionActive;
|
||||
@ -145,9 +147,7 @@ public class Evolution extends SoloGame
|
||||
VersionRequire1_8 = true;
|
||||
|
||||
CreatureAllow = false;
|
||||
|
||||
DeathMessages = false;
|
||||
|
||||
|
||||
InventoryClick = false;
|
||||
|
||||
InventoryOpenBlock = false;
|
||||
@ -406,6 +406,8 @@ public class Evolution extends SoloGame
|
||||
@EventHandler
|
||||
public void onKill(CombatDeathEvent event)
|
||||
{
|
||||
event.SetBroadcastType(DeathMessageType.Simple);
|
||||
|
||||
if (!IsLive())
|
||||
return;
|
||||
|
||||
@ -723,7 +725,7 @@ public class Evolution extends SoloGame
|
||||
ArrayList<EvoToken> tokens = new ArrayList<EvoToken>(_tokens.values());
|
||||
Collections.sort(tokens);
|
||||
|
||||
ArrayList<Player> players = new ArrayList<Player>();
|
||||
List<Player> players = new ArrayList<Player>();
|
||||
|
||||
for (int i = 0 ; i < tokens.size() ; i++)
|
||||
{
|
||||
@ -745,6 +747,9 @@ public class Evolution extends SoloGame
|
||||
if (player.isOnline())
|
||||
AddGems(player, 10, "Participation", false, false);
|
||||
|
||||
if (tokens.size() >= 1)
|
||||
players = players.subList(0, 1);
|
||||
|
||||
_tokens.clear();
|
||||
_evoPlatforms.clear();
|
||||
_evolutionsAvailable.clear();
|
||||
|
@ -39,7 +39,7 @@ public class NoMeleeTracker extends StatTracker<Evolution>
|
||||
if (!getGame().IsAlive(player))
|
||||
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()))
|
||||
_out.add(player.getName());
|
||||
|
Loading…
Reference in New Issue
Block a user