Dev7ex/MultiWorld

ImportCommand Error

Closed this issue · 1 comments

The import command throws an error if there is a file in the world folder

org.bukkit.command.CommandException: Unhandled exception during tab completion for command '/mw import ' in plugin MultiWorld v1.6.0-SNAPSHOT
at org.bukkit.command.PluginCommand.tabComplete(PluginCommand.java:150) ~[spigot-api-1.21-R0.1-SNAPSHOT.jar:?]
at org.bukkit.command.Command.tabComplete(Command.java:93) ~[spigot-api-1.21-R0.1-SNAPSHOT.jar:?]
at org.bukkit.command.SimpleCommandMap.tabComplete(SimpleCommandMap.java:232) ~[spigot-api-1.21-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_21_R1.CraftServer.tabCompleteCommand(CraftServer.java:2209) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at org.bukkit.craftbukkit.v1_21_R1.CraftServer.tabComplete(CraftServer.java:2181) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at org.bukkit.craftbukkit.v1_21_R1.command.BukkitCommandWrapper.getSuggestions(BukkitCommandWrapper.java:60) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at com.mojang.brigadier.tree.ArgumentCommandNode.listSuggestions(ArgumentCommandNode.java:71) ~[brigadier-1.2.9.jar:git-Spigot-146439e-a1d2cd1]
at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:542) ~[spigot-1.21-R0.1-SNAPSHOT.jar:?]
at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:524) ~[spigot-1.21-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:735) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at net.minecraft.network.protocol.game.PacketPlayInTabComplete.a(SourceFile:37) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at net.minecraft.network.protocol.game.PacketPlayInTabComplete.a(SourceFile:9) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$ensureRunningOnSameThread$0(PlayerConnectionUtils.java:35) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at net.minecraft.server.TickTask.run(SourceFile:18) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:162) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1270) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:203) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at net.minecraft.util.thread.IAsyncTaskHandler.B(SourceFile:136) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at net.minecraft.server.MinecraftServer.bv(MinecraftServer.java:1249) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at net.minecraft.server.MinecraftServer.B(MinecraftServer.java:1242) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at net.minecraft.util.thread.IAsyncTaskHandler.b(SourceFile:145) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1207) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at net.minecraft.server.MinecraftServer.v_(MinecraftServer.java:1214) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at net.minecraft.server.MinecraftServer.y(MinecraftServer.java:1078) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:318) ~[spigot-1.21-R0.1-SNAPSHOT.jar:git-Spigot-146439e-a1d2cd1]
at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.lang.IllegalArgumentException: Specified file is not a directory: /home/minecraft/network/development/development-1/worlds/test
at com.dev7ex.common.io.file.Files.containsFile(Files.java:26) ~[?:?]
at com.dev7ex.multiworld.command.world.ImportCommand.onTabComplete(ImportCommand.java:83) ~[?:?]
at com.dev7ex.multiworld.command.WorldCommand.onTabComplete(WorldCommand.java:81) ~[?:?]
at com.dev7ex.common.bukkit.command.completer.BukkitTabCompleter.onTabComplete(BukkitTabCompleter.java:20) ~[?:?]
at org.bukkit.command.PluginCommand.tabComplete(PluginCommand.java:138) ~[spigot-api-1.21-R0.1-SNAPSHOT.jar:?]
... 26 more

Fixed