Using the CG object on chat
This means user data will be available (again) if talking from Discord, for example.
This commit is contained in:
parent
050fd88560
commit
01562bf769
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue