Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class CloneCommand extends CoreCommand {
@Subcommand("clone")
@CommandPermission("multiverse.core.clone")
@CommandCompletion("@mvworlds:scope=loaded @empty @flags:groupName=" + Flags.NAME)
@Syntax("<world> <new-world-name> [--reset-world-config --reset-gamerules --reset-world-border]")
@Syntax("<world> <new-world-name> [--reset-world-config --reset-gamerules --reset-world-border --no-save]")
@Description("{@@mv-core.clone.description}")
void onCloneCommand(
MVCommandIssuer issuer,
Expand All @@ -55,7 +55,7 @@ void onCloneCommand(
String newWorldName,

@Optional
@Syntax("[--reset-world-config --reset-gamerules --reset-world-border]")
@Syntax("[--reset-world-config --reset-gamerules --reset-world-border --no-save]")
@Description("{@@mv-core.regen.other.description}")
String[] flagArray) {
ParsedCommandFlags parsedFlags = flags.parse(flagArray);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
@CommandPermission("multiverse.core.create")
@CommandCompletion("@empty @environments @flags:groupName=" + Flags.NAME)
@Syntax("<name> <environment> [--seed <seed> --generator <generator[:id]> --world-type <worldtype> " +
"--adjust-spawn --no-structures --generate-bonus-chest --force-spawn-position <x,y,z:pitch:yaw> " +
"--no-adjust-spawn --no-structures --generate-bonus-chest --force-spawn-position <x,y,z:pitch:yaw> " +

Check warning on line 59 in src/main/java/org/mvplugins/multiverse/core/commands/CreateCommand.java

View workflow job for this annotation

GitHub Actions / checkstyle / checkstyle

[checkstyle] reported by reviewdog 馃惗 '+' should be on a new line. Raw Output: /github/workspace/src/main/java/org/mvplugins/multiverse/core/commands/CreateCommand.java:59:114: warning: '+' should be on a new line. (com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck)
"--biome <biome> --generator-settings <json-settings> --properties <prop1=value1,prop2=value2,...>]")
@Description("{@@mv-core.create.description}")
void onCreateCommand(
Expand All @@ -71,7 +71,7 @@
World.Environment environment,

@Optional
@Syntax("[--seed <seed> --generator <generator[:id]> --world-type <worldtype> --adjust-spawn " +
@Syntax("[--seed <seed> --generator <generator[:id]> --world-type <worldtype> --no-adjust-spawn " +

Check warning on line 74 in src/main/java/org/mvplugins/multiverse/core/commands/CreateCommand.java

View workflow job for this annotation

GitHub Actions / checkstyle / checkstyle

[checkstyle] reported by reviewdog 馃惗 '+' should be on a new line. Raw Output: /github/workspace/src/main/java/org/mvplugins/multiverse/core/commands/CreateCommand.java:74:111: warning: '+' should be on a new line. (com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck)
"--no-structures --generate-bonus-chest --force-spawn-position <x,y,z:pitch:yaw> --biome <biome> " +
"--generator-settings <json-settings> --properties <prop1=value1,prop2=value2,...>]")
@Description("{@@mv-core.create.flags.description}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,21 @@ class GameruleCommand extends CoreCommand {
@Subcommand("gamerule|rule set")
@CommandPermission("multiverse.core.gamerule.set")
@CommandCompletion("@gamerules @gamerulesvalues @mvworlds:multiple|*")
@Syntax("<Gamerule> <Gamerule value> [World or *]")
@Syntax("<gamerule> <value> [worlds|*]")
@Description("{@@mv-core.gamerule.set.description}")
void onGameruleSetCommand(
MVCommandIssuer issuer,

@Syntax("<Gamerule>")
@Syntax("<gamerule>")
@Description("{@@mv-core.gamerule.set.gamerule.description}")
GameRule gamerule,

@Syntax("<Value>")
@Syntax("<value>")
@Description("{@@mv-core.gamerule.set.value.description}")
GameRuleValue gameRuleValue,

@Flags("resolve=issuerAware,maxArgForAware=2")
@Syntax("[World or *]")
@Syntax("[worlds|*]")
@Description("{@@mv-core.gamerule.set.world.description}")
LoadedMultiverseWorld[] worlds) {
Object value = gameRuleValue.value();
Expand Down Expand Up @@ -105,17 +105,17 @@ void onGameruleSetCommand(
@Subcommand("gamerule|rule reset")
@CommandPermission("multiverse.core.gamerule.set")
@CommandCompletion("@gamerules @mvworlds:multiple|*")
@Syntax("<Gamerule> [World or *]")
@Syntax("<gamerule> [worlds|*]")
@Description("{@@mv-core.gamerule.reset.description}")
void onGameruleResetCommand(
MVCommandIssuer issuer,

@Syntax("<Gamerule>")
@Syntax("<gamerule>")
@Description("{@@mv-core.gamerule.reset.gamerule.description}")
GameRule gamerule,

@Flags("resolve=issuerAware,maxArgForAware=1")
@Syntax("[World or *]")
@Syntax("[worlds|*]")
@Description("{@@mv-core.gamerule.reset.world.description}")
LoadedMultiverseWorld[] worlds) {
AtomicBoolean success = new AtomicBoolean(true);
Expand Down Expand Up @@ -153,7 +153,7 @@ void onGameruleListCommand(
MVCommandIssuer issuer,

@Flags("resolve=issuerAware,maxArgForAware=0")
@Syntax("<world>")
@Syntax("[world]")
@Description("{@@mv-core.gamerule.list.description.world}")
LoadedMultiverseWorld world,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
@Subcommand("import")
@CommandPermission("multiverse.core.import")
@CommandCompletion("@mvworlds:scope=potential @environments @flags:groupName=" + Flags.NAME)
@Syntax("<name> <environment> [--generator <generator[:id]> --adjust-spawn --biome <biome>]")
@Syntax("<name> <environment> [--generator <generator[:id]> --no-adjust-spawn --biome <biome> " +

Check warning on line 46 in src/main/java/org/mvplugins/multiverse/core/commands/ImportCommand.java

View workflow job for this annotation

GitHub Actions / checkstyle / checkstyle

[checkstyle] reported by reviewdog 馃惗 '+' should be on a new line. Raw Output: /github/workspace/src/main/java/org/mvplugins/multiverse/core/commands/ImportCommand.java:46:101: warning: '+' should be on a new line. (com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck)
"--skip-folder-check --generator-settings <json-settings>]")
@Description("{@@mv-core.import.description}")
void onImportCommand(
MVCommandIssuer issuer,
Expand All @@ -53,12 +54,13 @@
@Description("{@@mv-core.import.name.description}")
String worldName,

@Syntax("<env>")
@Syntax("<environment>")
@Description("{@@mv-core.import.env.description}")
World.Environment environment,

@Optional
@Syntax("[--generator <generator[:id]> --adjust-spawn --biome <biome>]")
@Syntax("[--generator <generator[:id]> --no-adjust-spawn --biome <biome> " +

Check warning on line 62 in src/main/java/org/mvplugins/multiverse/core/commands/ImportCommand.java

View workflow job for this annotation

GitHub Actions / checkstyle / checkstyle

[checkstyle] reported by reviewdog 馃惗 '+' should be on a new line. Raw Output: /github/workspace/src/main/java/org/mvplugins/multiverse/core/commands/ImportCommand.java:62:88: warning: '+' should be on a new line. (com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck)
"--skip-folder-check --generator-settings <json-settings>]")
@Description("{@@mv-core.import.other.description}")
String[] flagArray) {
ParsedCommandFlags parsedFlags = flags.parse(flagArray);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ class ListCommand extends CoreCommand {
@Subcommand("list")
@CommandPermission("multiverse.core.list.worlds")
@CommandCompletion("@flags:groupName=" + Flags.NAME)
@Syntax("--filter [filter] --page [page] --raw")
@Syntax("[--filter <filter>] [--page <page>] [--raw]")
@Description("{{@mv-core.list.description}}")
public void onListCommand(
MVCommandIssuer issuer,

@Syntax("[--filter <filter>] [--page <page>]")
@Syntax("[--filter <filter>] [--page <page>] [--raw]")
@Description("Filters the list of worlds by the given regex and displays the given page.")
String[] flagArray) {
ParsedCommandFlags parsedFlags = flags.parse(flagArray);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class LoadCommand extends CoreCommand {
@Subcommand("load")
@CommandPermission("multiverse.core.load")
@CommandCompletion("@mvworlds:scope=unloaded @flags:groupName=" + Flags.NAME)
@Syntax("<world>")
@Syntax("<world> [--skip-folder-check]")
@Description("{@@mv-core.load.description}")
void onLoadCommand(
MVCommandIssuer issuer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class RegenCommand extends CoreCommand {
@CommandPermission("multiverse.core.regen")
@CommandCompletion("@mvworlds:scope=loaded @flags:groupName=" + Flags.NAME)
@Syntax("<world> [--seed [seed]] [--reset-world-config] [--reset-gamerules] [--reset-world-border] " +
"[--remove-players [destination]]")
"[--keep-files <files>] [--remove-players [destination]]")
@Description("{@@mv-core.regen.description}")
void onRegenCommand(
MVCommandIssuer issuer,
Expand All @@ -81,7 +81,7 @@ void onRegenCommand(

@Optional
@Syntax("[--seed [seed]] [--reset-world-config] [--reset-gamerules] [--reset-world-border] " +
"[--remove-players [destination]]")
"[--keep-files <files>] [--remove-players [destination]]")
@Description("{@@mv-core.regen.other.description}")
String[] flagArray) {
ParsedCommandFlags parsedFlags = flags.parse(flagArray);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ class SetSpawnCommand extends CoreCommand {
@Subcommand("setspawn")
@CommandPermission("multiverse.core.spawn.set")
@CommandCompletion("@flags:groupName=" + UnsafeFlags.NAME + " @flags:resolveUntil=arg1,groupName=" + UnsafeFlags.NAME)
@Syntax("[worldname:x,y,z[,pitch,yaw]] [--unsafe]")
@Syntax("[worldname:x,y,z[,yaw,pitch]] [--unsafe]")
@Description("{@@mv-core.setspawn.description}")
void onSetSpawnCommand(
MVCommandIssuer issuer,

@Syntax("[worldname:x,y,z[,pitch,yaw]]")
@Syntax("[worldname:x,y,z[,yaw,pitch]]")
@Description("{@@mv-core.setspawn.location.description}")
PlayerLocation playerLocation,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ final class SpawnCommand extends CoreCommand {
@CommandPermission("@mvspawn")
@CommandCompletion("@playersarray:checkPermissions=@mvspawnother|@flags:resolveUntil=arg1,groupName=" + UnsafeFlags.NAME
+ " @flags:groupName=" + UnsafeFlags.NAME)
@Syntax("[player]")
@Syntax("[player] [--unsafe]")
@Description("{@@mv-core.spawn.description}")
void onSpawnTpCommand(
MVCommandIssuer issuer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ final class TeleportCommand extends CoreCommand {
@CommandCompletion("@playersarray:checkPermissions=@mvteleportother|@destinations:byIssuerForArg=arg1 "
+ "@destinations:notByIssuerForArg=arg1|@flags:byIssuerForArg=arg1,groupName=" + Flags.NAME + " "
+ "@flags:notByIssuerForArg=arg1,groupName=" + Flags.NAME)
@Syntax("[player] <destination> [--unsafe]")
@Syntax("[player] <destination> [--unsafe --silent]")
@Description("{@@mv-core.teleport.description}")
void onTeleportCommand(
MVCommandIssuer issuer,
Expand All @@ -74,7 +74,7 @@ void onTeleportCommand(
DestinationInstance<?, ?> destination,

@Optional
@Syntax("[--unsafe]")
@Syntax("[--unsafe --silent]")
@Description("")
String[] flagArray) {
Player[] players = playersValue.value();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class UnloadCommand extends CoreCommand {
@Subcommand("unload")
@CommandPermission("multiverse.core.unload")
@CommandCompletion("@mvworlds @flags:groupName=" + Flags.NAME)
@Syntax("<world> [--remove-players [destination]] [--no-save]")
@Syntax("<world> [--remove-players [destination]] [--no-unload-bukkit-world] [--no-save]")
@Description("{@@mv-core.unload.description}")
void onUnloadCommand(
MVCommandIssuer issuer,
Expand All @@ -62,7 +62,7 @@ void onUnloadCommand(
LoadedMultiverseWorld world,

@Optional
@Syntax("[--remove-players [destination]] [--no-save]")
@Syntax("[--remove-players [destination]] [--no-unload-bukkit-world] [--no-save]")
@Description("{@@mv-core.gamerules.description.page}")
String[] flagArray) {
ParsedCommandFlags parsedFlags = flags.parse(flagArray);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ void onWorldBorderAdd(
void onWorldBorderCenter(
MVCommandIssuer issuer,

@Syntax("[x]")
@Syntax("<x>")
double x,

@Syntax("[z]")
@Syntax("<z>")
double z,

@Flags("resolve=issuerAware,maxArgForAware=0")
Expand Down
Loading