mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 06:28:49 +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
|
@Override
|
||||||
public void onExecute(@NotNull OnlineUser onlineUser, @NotNull String[] args) {
|
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 -> {
|
case 0 -> plugin.getDatabase().getHomes(onlineUser).thenAccept(homes -> {
|
||||||
if (homes.size() == 1) {
|
if (homes.size() == 1) {
|
||||||
homes.stream().findFirst().ifPresent(home -> deletePlayerHome(onlineUser, onlineUser, home.meta.name));
|
homes.stream().findFirst().ifPresent(home -> deletePlayerHome(onlineUser, onlineUser, home.meta.name));
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ public class DelWarpCommand extends CommandBase implements TabCompletable, Conso
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onExecute(@NotNull OnlineUser onlineUser, @NotNull String[] args) {
|
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];
|
final String warpName = args[0];
|
||||||
plugin.getSavedPositionManager().deleteWarp(warpName).thenAccept(deleted -> {
|
plugin.getSavedPositionManager().deleteWarp(warpName).thenAccept(deleted -> {
|
||||||
if (deleted) {
|
if (deleted) {
|
||||||
|
|||||||
Reference in new issue
Block a user