adding hotbar text.

This commit is contained in:
Sarah 2015-08-29 00:24:44 +02:00
parent 2a236684ac
commit ccc9645c47

View File

@ -11,6 +11,7 @@ import mineplex.core.common.util.UtilAlg;
import mineplex.core.common.util.UtilEnt;
import mineplex.core.common.util.UtilMath;
import mineplex.core.common.util.UtilPlayer;
import mineplex.core.common.util.UtilTextBottom;
import mineplex.core.common.util.UtilTime;
import mineplex.core.updater.UpdateType;
import mineplex.core.updater.event.UpdateEvent;
@ -123,6 +124,9 @@ public class TypeWars extends TeamGame
player.setAllowFlight(true);
player.setFlying(true);
player.setLevel(_moneyMap.get(player));
Minion firstMinion = getFarestMininion(player, null);
if(firstMinion != null)
UtilTextBottom.display(firstMinion.getTeam().GetColor() + firstMinion.getName(), player);
for(Minion minion : _activeMinions)
{
@ -269,7 +273,7 @@ public class TypeWars extends TeamGame
{
for(Minion minion : _activeMinions)
{
if(!minion.getName().equalsIgnoreCase(msg))
if(msg != null && !minion.getName().equalsIgnoreCase(msg))
continue;
if(GetTeam(player) == minion.getTeam())
@ -282,7 +286,7 @@ public class TypeWars extends TeamGame
if(minion == otherMinion)
continue;
if(!otherMinion.getName().equalsIgnoreCase(msg))
if(msg != null && !otherMinion.getName().equalsIgnoreCase(msg))
continue;
if(GetTeam(player) == otherMinion.getTeam())