adding hotbar text.
This commit is contained in:
parent
2a236684ac
commit
ccc9645c47
@ -11,6 +11,7 @@ import mineplex.core.common.util.UtilAlg;
|
|||||||
import mineplex.core.common.util.UtilEnt;
|
import mineplex.core.common.util.UtilEnt;
|
||||||
import mineplex.core.common.util.UtilMath;
|
import mineplex.core.common.util.UtilMath;
|
||||||
import mineplex.core.common.util.UtilPlayer;
|
import mineplex.core.common.util.UtilPlayer;
|
||||||
|
import mineplex.core.common.util.UtilTextBottom;
|
||||||
import mineplex.core.common.util.UtilTime;
|
import mineplex.core.common.util.UtilTime;
|
||||||
import mineplex.core.updater.UpdateType;
|
import mineplex.core.updater.UpdateType;
|
||||||
import mineplex.core.updater.event.UpdateEvent;
|
import mineplex.core.updater.event.UpdateEvent;
|
||||||
@ -123,6 +124,9 @@ public class TypeWars extends TeamGame
|
|||||||
player.setAllowFlight(true);
|
player.setAllowFlight(true);
|
||||||
player.setFlying(true);
|
player.setFlying(true);
|
||||||
player.setLevel(_moneyMap.get(player));
|
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)
|
for(Minion minion : _activeMinions)
|
||||||
{
|
{
|
||||||
@ -269,7 +273,7 @@ public class TypeWars extends TeamGame
|
|||||||
{
|
{
|
||||||
for(Minion minion : _activeMinions)
|
for(Minion minion : _activeMinions)
|
||||||
{
|
{
|
||||||
if(!minion.getName().equalsIgnoreCase(msg))
|
if(msg != null && !minion.getName().equalsIgnoreCase(msg))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(GetTeam(player) == minion.getTeam())
|
if(GetTeam(player) == minion.getTeam())
|
||||||
@ -282,7 +286,7 @@ public class TypeWars extends TeamGame
|
|||||||
if(minion == otherMinion)
|
if(minion == otherMinion)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(!otherMinion.getName().equalsIgnoreCase(msg))
|
if(msg != null && !otherMinion.getName().equalsIgnoreCase(msg))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(GetTeam(player) == otherMinion.getTeam())
|
if(GetTeam(player) == otherMinion.getTeam())
|
||||||
|
Loading…
Reference in New Issue
Block a user