mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Start command refactor
This commit is contained in:
1 parent
39e0b25d46
commit
3e27f7c5b1
57 files changed
+728
-384
No files matched your search
@@ -19,7 +19,7 @@ import java.util.logging.Level;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class PublicHomeCommand extends CommandBase implements TabCompletable, ConsoleExecutable {
|
||||
public class PublicHomeCommand extends Command implements TabProvider, ConsoleExecutable {
|
||||
|
||||
protected PublicHomeCommand(@NotNull HuskHomes implementor) {
|
||||
super("publichome", Permission.COMMAND_PUBLIC_HOME, implementor, "phome");
|
||||
@@ -133,7 +133,7 @@ public class PublicHomeCommand extends CommandBase implements TabCompletable, Co
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull List<String> onTabComplete(@NotNull String[] args, @Nullable OnlineUser user) {
|
||||
public @NotNull List<String> suggest(@NotNull String[] args, @Nullable OnlineUser user) {
|
||||
// Return every public home name as username.home_name from the cache
|
||||
final List<String> publicHomes = new ArrayList<>();
|
||||
plugin.getCache().getPublicHomes().forEach((ownerName, homeNames) ->
|
||||
|
||||
Reference in new issue
Block a user