Fixed Discord indicator
https://github.com/TBMCPlugins/DiscordPlugin/issues/15
This commit is contained in:
parent
6d38b5b9f1
commit
bd55c580c9
1 changed files with 6 additions and 6 deletions
|
@ -191,12 +191,12 @@ 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(new TellrawPart(
|
json.addExtra(
|
||||||
("[" + (sender instanceof Player ? "" : sender.getClass().getSimpleName().toLowerCase().charAt(0))
|
new TellrawPart(("[" + (sender instanceof IDiscordSender ? "d|" : "") + currentchannel.DisplayName)
|
||||||
+ currentchannel.DisplayName) + "]" + (mp != null && !mp.RPMode ? "[OOC]" : ""))
|
+ "]" + (mp != null && !mp.RPMode ? "[OOC]" : "")).setHoverEvent(
|
||||||
.setHoverEvent(
|
|
||||||
TellrawEvent.create(TellrawEvent.HoverAC, TellrawEvent.HoverAction.SHOW_TEXT,
|
TellrawEvent.create(TellrawEvent.HoverAC, TellrawEvent.HoverAction.SHOW_TEXT,
|
||||||
new TellrawPart("Copy message").setColor(Color.Blue)))
|
new TellrawPart((sender instanceof IDiscordSender ? "From Discord\n" : "")
|
||||||
|
+ "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)));
|
||||||
json.addExtra(new TellrawPart(" <"));
|
json.addExtra(new TellrawPart(" <"));
|
||||||
|
|
Loading…
Reference in a new issue