Fixed chat formatting and Discord message hover info in MC #83

Merged
NorbiPeti merged 4 commits from dev into master 2018-07-20 12:22:12 +00:00
Showing only changes of commit 01562bf769 - Show all commits

View file

@ -104,9 +104,11 @@ public class ChatProcessing {
doFunStuff(sender, e, message);
ChatPlayer mp = null;
ChatPlayer mp;
if (player != null)
mp = TBMCPlayerBase.getPlayer(player.getUniqueId(), ChatPlayer.class);
else //Due to the online player map, getPlayer() can be more efficient than getAs()
mp = e.getUser().getAs(ChatPlayer.class); //May be null
Color colormode = channel.color;
if (mp != null && mp.OtherColorMode != null)