Fix some weird chat manager code

This commit is contained in:
Sam 2017-10-26 17:49:19 +01:00 committed by Alexander Meech
parent 5bbc85f821
commit 093e4404e4
2 changed files with 5 additions and 8 deletions

View File

@ -36,7 +36,6 @@ import net.minecraft.server.v1_8_R3.World;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.Sound;
import org.bukkit.craftbukkit.v1_8_R3.CraftWorld;
import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer;
import org.bukkit.craftbukkit.v1_8_R3.inventory.CraftItemStack;
@ -57,7 +56,6 @@ import mineplex.core.MiniDbClientPlugin;
import mineplex.core.ReflectivelyCreateMiniPlugin;
import mineplex.core.book.BookBuilder;
import mineplex.core.common.DummyEntity;
import mineplex.core.common.MinecraftVersion;
import mineplex.core.common.util.C;
import mineplex.core.common.util.F;
import mineplex.core.common.util.LineFormat;

View File

@ -348,14 +348,13 @@ public class GameChatManager implements Listener
Game game = _manager.GetGame();
String gameName = game.GetName();
if (!_manager.GetGame().GetStats().containsKey(player))
{
temp.add(new SimpleEntry<>(C.cGray + "No in-game stats available", ""));
}
for (ChatStatData statData : hoverText)
{
if (!_manager.GetGame().GetStats().containsKey(player))
{
temp.add(new SimpleEntry<>(C.cGray + "No in-game stats available", ""));
break;
}
String display = (statData.getDisplay() == null ? statData.getStat() : statData.getDisplay());
if (!statData.isValue())