WHITE SPACE CHANGES!
This commit is contained in:
parent
010336983a
commit
87fa103711
|
@ -154,31 +154,31 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
||||||
event.setRespawnLocation(GetSpawn());
|
event.setRespawnLocation(GetSpawn());
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void OnChunkLoad(ChunkLoadEvent event)
|
public void OnChunkLoad(ChunkLoadEvent event)
|
||||||
{
|
{
|
||||||
for (Entity entity : event.getChunk().getEntities())
|
for (Entity entity : event.getChunk().getEntities())
|
||||||
{
|
{
|
||||||
if (entity instanceof LivingEntity)
|
if (entity instanceof LivingEntity)
|
||||||
{
|
{
|
||||||
if (((LivingEntity)entity).isCustomNameVisible() && ((LivingEntity)entity).getCustomName() != null)
|
if (((LivingEntity)entity).isCustomNameVisible() && ((LivingEntity)entity).getCustomName() != null)
|
||||||
{
|
{
|
||||||
if (((LivingEntity)entity).getCustomName().equalsIgnoreCase("play minekart plz"))
|
if (((LivingEntity)entity).getCustomName().equalsIgnoreCase("play minekart plz"))
|
||||||
{
|
{
|
||||||
_disguiseManager.disguise(new DisguisePlayer(entity, "Play " + ChatColor.YELLOW + "MineKart"));
|
_disguiseManager.disguise(new DisguisePlayer(entity, "Play " + ChatColor.YELLOW + "MineKart"));
|
||||||
}
|
}
|
||||||
else if (((LivingEntity)entity).getCustomName().equalsIgnoreCase("defek7"))
|
else if (((LivingEntity)entity).getCustomName().equalsIgnoreCase("defek7"))
|
||||||
_disguiseManager.disguise(new DisguisePlayer(entity, "defek7"));
|
_disguiseManager.disguise(new DisguisePlayer(entity, "defek7"));
|
||||||
else if (((LivingEntity)entity).getCustomName().equalsIgnoreCase("chiss"))
|
else if (((LivingEntity)entity).getCustomName().equalsIgnoreCase("chiss"))
|
||||||
_disguiseManager.disguise(new DisguisePlayer(entity, "Chiss"));
|
_disguiseManager.disguise(new DisguisePlayer(entity, "Chiss"));
|
||||||
else if (((LivingEntity)entity).getCustomName().equalsIgnoreCase("Sterling_"))
|
else if (((LivingEntity)entity).getCustomName().equalsIgnoreCase("Sterling_"))
|
||||||
_disguiseManager.disguise(new DisguisePlayer(entity, "sterling_"));
|
_disguiseManager.disguise(new DisguisePlayer(entity, "sterling_"));
|
||||||
else if (((LivingEntity)entity).getCustomName().equalsIgnoreCase("Spu_"))
|
else if (((LivingEntity)entity).getCustomName().equalsIgnoreCase("Spu_"))
|
||||||
_disguiseManager.disguise(new DisguisePlayer(entity, "Spu_"));
|
_disguiseManager.disguise(new DisguisePlayer(entity, "Spu_"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.LOW)
|
@EventHandler(priority = EventPriority.LOW)
|
||||||
public void PlayerJoin(PlayerJoinEvent event)
|
public void PlayerJoin(PlayerJoinEvent event)
|
||||||
|
|
Loading…
Reference in New Issue