mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
home, sethome and homelist implementation
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user