summaryrefslogtreewikicommitdiff
path: root/src/main/java/net/tylermurphy/hideAndSeek/command/world/Delete.java
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2022-11-21 23:47:04 -0500
committerTyler Murphy <tylermurphy534@gmail.com>2022-11-21 23:47:04 -0500
commitfcc3764a14d76fa24cddb75fe338a3ee36dec3fa (patch)
tree7db605d10cceffe29f1f9dca884e99f35d24d6e4 /src/main/java/net/tylermurphy/hideAndSeek/command/world/Delete.java
parent1.7.0 beta 8 (diff)
downloadkenshinshideandseek-fcc3764a14d76fa24cddb75fe338a3ee36dec3fa.tar.gz
kenshinshideandseek-fcc3764a14d76fa24cddb75fe338a3ee36dec3fa.tar.bz2
kenshinshideandseek-fcc3764a14d76fa24cddb75fe338a3ee36dec3fa.zip
1.7.0 beta 9
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/command/world/Delete.java')
-rw-r--r--src/main/java/net/tylermurphy/hideAndSeek/command/world/Delete.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/world/Delete.java b/src/main/java/net/tylermurphy/hideAndSeek/command/world/Delete.java
index 4800e08..985ccdc 100644
--- a/src/main/java/net/tylermurphy/hideAndSeek/command/world/Delete.java
+++ b/src/main/java/net/tylermurphy/hideAndSeek/command/world/Delete.java
@@ -22,12 +22,14 @@ public class Delete implements ICommand {
java.util.List<String> worlds = Main.getInstance().getWorlds();
if(!worlds.contains(args[0])) {
sender.sendMessage(errorPrefix + message("WORLD_DOESNT_EXIST").addAmount(args[0]));
+ return;
}
Confirm.Confirmation confirmation = new Confirm.Confirmation(args[0], world -> {
java.util.List<String> worlds_now = Main.getInstance().getWorlds();
if(!worlds_now.contains(world)) {
sender.sendMessage(errorPrefix + message("WORLD_DOESNT_EXIST").addAmount(world));
+ return;
}
World bukkit_world = Bukkit.getWorld(world);
if(bukkit_world != null && bukkit_world.getPlayers().size() > 0) {