mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Remove ConsoleExecutable from /delhome, /delwarp, /edithome, /editwarp
This commit is contained in:
1 parent
f12490951a
commit
b44750381f
4 files changed
+4
-24
No files matched your search
@@ -12,7 +12,7 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class DelHomeCommand extends CommandBase implements TabCompletable, ConsoleExecutable {
|
||||
public class DelHomeCommand extends CommandBase implements TabCompletable {
|
||||
|
||||
protected DelHomeCommand(@NotNull HuskHomes implementor) {
|
||||
super("delhome", Permission.COMMAND_DELETE_HOME, implementor);
|
||||
@@ -78,11 +78,6 @@ public class DelHomeCommand extends CommandBase implements TabCompletable, Conso
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onConsoleExecute(@NotNull String[] args) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull List<String> onTabComplete(@NotNull String[] args, @Nullable OnlineUser user) {
|
||||
if (user == null) {
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class DelWarpCommand extends CommandBase implements TabCompletable, ConsoleExecutable {
|
||||
public class DelWarpCommand extends CommandBase implements TabCompletable {
|
||||
|
||||
protected DelWarpCommand(@NotNull HuskHomes implementor) {
|
||||
super("delwarp", Permission.COMMAND_DELETE_WARP, implementor);
|
||||
@@ -33,11 +33,6 @@ public class DelWarpCommand extends CommandBase implements TabCompletable, Conso
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onConsoleExecute(@NotNull String[] args) {
|
||||
//todo
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull List<String> onTabComplete(@NotNull String[] args, @Nullable OnlineUser user) {
|
||||
return args.length > 1 ? Collections.emptyList() : plugin.getCache().warps.stream()
|
||||
|
||||
@@ -19,7 +19,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class EditHomeCommand extends CommandBase implements TabCompletable, ConsoleExecutable {
|
||||
public class EditHomeCommand extends CommandBase implements TabCompletable {
|
||||
|
||||
private final String[] EDIT_HOME_COMPLETIONS = {"rename", "description", "relocate", "privacy"};
|
||||
|
||||
@@ -336,11 +336,6 @@ public class EditHomeCommand extends CommandBase implements TabCompletable, Cons
|
||||
}};
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onConsoleExecute(@NotNull String[] args) {
|
||||
//todo
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull List<String> onTabComplete(@NotNull String[] args, @Nullable OnlineUser user) {
|
||||
if (user == null) {
|
||||
|
||||
@@ -16,7 +16,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class EditWarpCommand extends CommandBase implements TabCompletable, ConsoleExecutable {
|
||||
public class EditWarpCommand extends CommandBase implements TabCompletable {
|
||||
|
||||
private final String[] EDIT_WARP_COMPLETIONS = {"rename", "description", "relocate"};
|
||||
|
||||
@@ -197,11 +197,6 @@ public class EditWarpCommand extends CommandBase implements TabCompletable, Cons
|
||||
}};
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onConsoleExecute(@NotNull String[] args) {
|
||||
//todo
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull List<String> onTabComplete(@NotNull String[] args, @Nullable OnlineUser user) {
|
||||
return switch (args.length) {
|
||||
|
||||
Reference in new issue
Block a user