home, sethome and homelist implementation

This commit is contained in:
William committed 2022-05-28 23:03:04 +01:00
1 parent 5e793e8ec7
commit 0e33fb8014
18 files changed
+349 -138

No files matched your search

@@ -38,7 +38,7 @@ public class BukkitCommand implements CommandExecutor, TabExecutor {
public void register(@NotNull PluginCommand pluginCommand) {
pluginCommand.setExecutor(this);
pluginCommand.setTabCompleter(this);
pluginCommand.setDescription(pluginCommand.getDescription());
pluginCommand.setDescription(command.getDescription());
}
@Override
@@ -61,7 +61,7 @@ public class BukkitCommand implements CommandExecutor, TabExecutor {
@Override
public List<String> onTabComplete(@NotNull CommandSender sender, @NotNull Command command,
@NotNull String alias, @NotNull String[] args) {
if (command instanceof TabCompletable tabCompletable) {
if (this.command instanceof TabCompletable tabCompletable) {
return tabCompletable.onTabComplete(BukkitPlayer.adapt((Player) sender), args);
}
return Collections.emptyList();