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));
|
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.")
|
compressed.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("Shows all friends.")
|
||||||
.create()));
|
.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
|
// Use a LinkedHashMap so we maintain insertion order
|
||||||
|
@ -18,7 +18,14 @@ public class FriendsDisplay extends CommandBase<FriendManager>
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void Execute(Player caller, final String[] args)
|
public void Execute(Player caller, final String[] args)
|
||||||
{
|
{
|
||||||
Plugin.showFriends(caller, true);
|
if (args.length > 0)
|
||||||
}
|
{
|
||||||
|
Plugin.showFriendsInUI(caller);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Plugin.showFriends(caller, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user