Added owner disguises

This commit is contained in:
Jonathan Williams 2013-08-31 02:25:06 -07:00
parent ff75bc1207
commit 300981524d

View File

@ -94,9 +94,18 @@ public class HubManager extends MiniClientPlugin<HubClient>
{
if (entity instanceof LivingEntity)
{
if (((LivingEntity)entity).isCustomNameVisible() && ((LivingEntity)entity).getCustomName() != null && ((LivingEntity)entity).getCustomName().equalsIgnoreCase("minekartrider"))
if (((LivingEntity)entity).isCustomNameVisible() && ((LivingEntity)entity).getCustomName() != null)
{
if (((LivingEntity)entity).getCustomName().equalsIgnoreCase("minekartrider"))
_disguiseManager.Disguise(new DisguisePlayer(entity, "Play " + ChatColor.YELLOW + "MineKart"));
else if (((LivingEntity)entity).getCustomName().equalsIgnoreCase("defek7"))
_disguiseManager.Disguise(new DisguisePlayer(entity, "defek7"));
else if (((LivingEntity)entity).getCustomName().equalsIgnoreCase("chiss"))
_disguiseManager.Disguise(new DisguisePlayer(entity, "Chiss"));
else if (((LivingEntity)entity).getCustomName().equalsIgnoreCase("Sterling_"))
_disguiseManager.Disguise(new DisguisePlayer(entity, "Sterling_"));
else if (((LivingEntity)entity).getCustomName().equalsIgnoreCase("Spu_"))
_disguiseManager.Disguise(new DisguisePlayer(entity, "Spu_"));
}
}
}