Fix compression not being clickable
This commit is contained in:
parent
fcd3b95fff
commit
ab38705422
|
@ -527,7 +527,7 @@ public class FriendManager extends MiniDbClientPlugin<List<FriendStatus>>
|
|||
TextComponent compressed = new TextComponent(C.cGray + "Sent: " + F.count(sent) + " Pending: " + F.count(pending));
|
||||
compressed.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("Shows all friends.")
|
||||
.create()));
|
||||
compressed.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/"));
|
||||
compressed.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/" + FriendsDisplay.COMMAND + " chest"));
|
||||
}
|
||||
|
||||
// Use a LinkedHashMap so we maintain insertion order
|
||||
|
|
|
@ -18,7 +18,14 @@ public class FriendsDisplay extends CommandBase<FriendManager>
|
|||
|
||||
@Override
|
||||
public void Execute(Player caller, final String[] args)
|
||||
{
|
||||
if (args.length > 0)
|
||||
{
|
||||
Plugin.showFriendsInUI(caller);
|
||||
}
|
||||
else
|
||||
{
|
||||
Plugin.showFriends(caller, true);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue