File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/java/org/mvplugins/multiverse/core/commands Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ void onUnloadCommand(
7575
7676 private void doWorldUnloading (MVCommandIssuer issuer , LoadedMultiverseWorld world , ParsedCommandFlags parsedFlags ) {
7777 UnloadWorldOptions unloadWorldOptions = UnloadWorldOptions .world (world )
78+ .unloadBukkitWorld (!parsedFlags .hasFlag (flags .noUnloadBukkitWorld ))
7879 .saveBukkitWorld (!parsedFlags .hasFlag (flags .noSave ));
7980 worldManager .unloadWorld (unloadWorldOptions )
8081 .onSuccess (loadedWorld -> {
@@ -96,6 +97,10 @@ private Flags(@NotNull CommandFlagsManager flagsManager) {
9697 super (NAME , flagsManager );
9798 }
9899
100+ private final CommandFlag noUnloadBukkitWorld = flag (CommandFlag .builder ("--no-unload-bukkit-world" )
101+ .addAlias ("-b" )
102+ .build ());
103+
99104 private final CommandFlag noSave = flag (CommandFlag .builder ("--no-save" )
100105 .addAlias ("-n" )
101106 .build ());
You can’t perform that action at this time.
0 commit comments