diff --git a/plugin/src/main/java/net/thenextlvl/worlds/command/WorldUnloadCommand.java b/plugin/src/main/java/net/thenextlvl/worlds/command/WorldUnloadCommand.java index 45891e6..23a7d43 100644 --- a/plugin/src/main/java/net/thenextlvl/worlds/command/WorldUnloadCommand.java +++ b/plugin/src/main/java/net/thenextlvl/worlds/command/WorldUnloadCommand.java @@ -23,8 +23,8 @@ class WorldUnloadCommand { .then(Commands.argument("world", ArgumentTypes.world()) .suggests(new WorldSuggestionProvider<>(plugin)) .then(Commands.argument("fallback", ArgumentTypes.world()) - .suggests(new WorldSuggestionProvider<>(plugin)) //, (context, world) -> - //!world.equals(context.getArgument("world", World.class)))) + .suggests(new WorldSuggestionProvider<>(plugin, (context, world) -> + !world.equals(context.getLastChild().getArgument("world", World.class)))) .executes(context -> { var world = context.getArgument("world", World.class); var fallback = context.getArgument("fallback", World.class);