Some todo notes

This commit is contained in:
William committed 2022-08-17 23:32:11 +01:00
1 parent 3b69b2df4d
commit 2325fd9220
2 files changed
+2 -2

No files matched your search

@@ -20,7 +20,7 @@ public class DelHomeCommand extends CommandBase implements TabCompletable, Conso
@Override
public void onExecute(@NotNull OnlineUser onlineUser, @NotNull String[] args) {
switch (args.length) {
switch (args.length) { //todo delhome all
case 0 -> plugin.getDatabase().getHomes(onlineUser).thenAccept(homes -> {
if (homes.size() == 1) {
homes.stream().findFirst().ifPresent(home -> deletePlayerHome(onlineUser, onlineUser, home.meta.name));