Added sender indicator for chat msgs
https://github.com/TBMCPlugins/DiscordPlugin/issues/12
This commit is contained in:
parent
57f15694ad
commit
6d38b5b9f1
1 changed files with 8 additions and 6 deletions
|
@ -191,9 +191,11 @@ public class ChatProcessing {
|
||||||
json.addExtra(new TellrawPart("[C]").setHoverEvent(
|
json.addExtra(new TellrawPart("[C]").setHoverEvent(
|
||||||
TellrawEvent.create(TellrawEvent.HoverAC, TellrawEvent.HoverAction.SHOW_TEXT, "Chat only")));
|
TellrawEvent.create(TellrawEvent.HoverAC, TellrawEvent.HoverAction.SHOW_TEXT, "Chat only")));
|
||||||
}
|
}
|
||||||
json.addExtra(
|
json.addExtra(new TellrawPart(
|
||||||
new TellrawPart(("[" + currentchannel.DisplayName) + "]" + (mp != null && !mp.RPMode ? "[OOC]" : ""))
|
("[" + (sender instanceof Player ? "" : sender.getClass().getSimpleName().toLowerCase().charAt(0))
|
||||||
.setHoverEvent(TellrawEvent.create(TellrawEvent.HoverAC, TellrawEvent.HoverAction.SHOW_TEXT,
|
+ currentchannel.DisplayName) + "]" + (mp != null && !mp.RPMode ? "[OOC]" : ""))
|
||||||
|
.setHoverEvent(
|
||||||
|
TellrawEvent.create(TellrawEvent.HoverAC, TellrawEvent.HoverAction.SHOW_TEXT,
|
||||||
new TellrawPart("Copy message").setColor(Color.Blue)))
|
new TellrawPart("Copy message").setColor(Color.Blue)))
|
||||||
.setClickEvent(TellrawEvent.create(TellrawEvent.ClickAC,
|
.setClickEvent(TellrawEvent.create(TellrawEvent.ClickAC,
|
||||||
TellrawEvent.ClickAction.SUGGEST_COMMAND, suggestmsg)));
|
TellrawEvent.ClickAction.SUGGEST_COMMAND, suggestmsg)));
|
||||||
|
|
Loading…
Reference in a new issue