Added support for nicknames from MC
This commit is contained in:
parent
faf3b8857f
commit
f88c152fc7
1 changed files with 2 additions and 2 deletions
|
@ -29,8 +29,8 @@ public class MCChatListener implements Listener, IListener<MessageReceivedEvent>
|
||||||
if (e.getSender() instanceof DiscordSender)
|
if (e.getSender() instanceof DiscordSender)
|
||||||
return;
|
return;
|
||||||
if (e.getChannel().equals(Channel.GlobalChat))
|
if (e.getChannel().equals(Channel.GlobalChat))
|
||||||
DiscordPlugin.sendMessageToChannel(DiscordPlugin.chatchannel,
|
DiscordPlugin.sendMessageToChannel(DiscordPlugin.chatchannel, "<" + (e.getSender() instanceof Player
|
||||||
"<" + e.getSender().getName() + "> " + e.getMessage());
|
? ((Player) e.getSender()).getDisplayName() : e.getSender().getName()) + "> " + e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final String[] UnconnectedCmds = new String[] { "list", "u", "shrug", "tableflip", "unflip",
|
private static final String[] UnconnectedCmds = new String[] { "list", "u", "shrug", "tableflip", "unflip",
|
||||||
|
|
Loading…
Reference in a new issue