Skip to content

Commit e9905ca

Browse files
authored
Merge pull request #3434 from Multiverse/fix/load-flags
Fix `--skip-folder-check` flag not showing for `/mv load` command
2 parents 3971152 + e002282 commit e9905ca

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/main/java/org/mvplugins/multiverse/core/commands/LoadCommand.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
import org.mvplugins.multiverse.core.command.MVCommandIssuer;
1717
import org.mvplugins.multiverse.core.command.flag.CommandFlag;
1818
import org.mvplugins.multiverse.core.command.flag.CommandFlagsManager;
19+
import org.mvplugins.multiverse.core.command.flag.FlagBuilder;
1920
import org.mvplugins.multiverse.core.command.flag.ParsedCommandFlags;
20-
import org.mvplugins.multiverse.core.command.flags.RemovePlayerFlags;
2121
import org.mvplugins.multiverse.core.locale.MVCorei18n;
2222
import org.mvplugins.multiverse.core.locale.message.MessageReplacement.Replace;
2323
import org.mvplugins.multiverse.core.world.MultiverseWorld;
@@ -38,7 +38,7 @@ class LoadCommand extends CoreCommand {
3838

3939
@Subcommand("load")
4040
@CommandPermission("multiverse.core.load")
41-
@CommandCompletion("@mvworlds:scope=unloaded")
41+
@CommandCompletion("@mvworlds:scope=unloaded @flags:groupName=" + Flags.NAME)
4242
@Syntax("<world>")
4343
@Description("{@@mv-core.load.description}")
4444
void onLoadCommand(
@@ -49,7 +49,7 @@ void onLoadCommand(
4949
MultiverseWorld world,
5050

5151
@Optional
52-
@Syntax("[--remove-players]")
52+
@Syntax("[--skip-folder-check]")
5353
@Description("")
5454
String[] flagArray) {
5555
ParsedCommandFlags parsedFlags = flags.parse(flagArray);
@@ -67,9 +67,9 @@ void onLoadCommand(
6767
}
6868

6969
@Service
70-
private static final class Flags extends RemovePlayerFlags {
70+
private static final class Flags extends FlagBuilder {
7171

72-
private static final String NAME = "mvunload";
72+
private static final String NAME = "mvload";
7373

7474
@Inject
7575
private Flags(@NotNull CommandFlagsManager flagsManager) {

0 commit comments

Comments
 (0)