feat: allow /phome <name> on uniquely named homes

If multiple public homes with the same name exist, typing /phome (name) will bring up a filtered public home list containing the list of public homes with that name for you to click on. The username-prefixed name will also be the only one to show up in TAB.

This commit also fixes a bug with home/warp lists showing a blank description on hover instead of `(none)`.
This commit is contained in:
William committed 2024-03-31 17:40:38 +01:00
1 parent 0135966c6e
commit 4e9046395c
32 files changed
+353 -81

No files matched your search

@@ -32,8 +32,9 @@ import java.util.Optional;
public abstract class HomeCommand extends SavedPositionCommand<Home> {
protected HomeCommand(@NotNull String name, @NotNull List<String> aliases, @NotNull HuskHomes plugin) {
super(name, aliases, Home.class, List.of("player"), plugin);
protected HomeCommand(@NotNull String name, @NotNull List<String> aliases, @NotNull PositionCommandType type,
@NotNull HuskHomes plugin) {
super(name, aliases, type, List.of("player"), plugin);
}
@Override