mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Some todo notes
This commit is contained in:
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));
|
||||
|
||||
@@ -17,7 +17,7 @@ public class DelWarpCommand extends CommandBase implements TabCompletable, Conso
|
||||
|
||||
@Override
|
||||
public void onExecute(@NotNull OnlineUser onlineUser, @NotNull String[] args) {
|
||||
if (args.length == 1) {
|
||||
if (args.length == 1) { //todo delwarp all
|
||||
final String warpName = args[0];
|
||||
plugin.getSavedPositionManager().deleteWarp(warpName).thenAccept(deleted -> {
|
||||
if (deleted) {
|
||||
|
||||
Reference in new issue
Block a user