From 7b2e28d4390bec0dbe21b8a9322cc30d8ec60a8e Mon Sep 17 00:00:00 2001 From: piexel Date: Wed, 18 Nov 2026 17:45:10 +0100 Subject: [PATCH] Kebab-case remaining command names - Rename loadWorld and unloadWorld to load-world and unload-world - Kebab-case camelCase jigsaw params --- .../java/art/arcane/iris/command/CommandIris.java | 4 ++-- .../art/arcane/iris/command/CommandJigsawAdopt.java | 2 +- .../art/arcane/iris/command/CommandJigsawPiece.java | 10 +++++----- .../art/arcane/iris/command/CommandJigsawPool.java | 4 ++-- .../art/arcane/iris/command/CommandJigsawRules.java | 12 ++++++------ .../arcane/iris/command/CommandJigsawVariant.java | 6 +++--- .../arcane/iris/command/CommandJigsawWorkcell.java | 2 +- .../plugin/src/test/gameplay/world-lifecycle.mjs | 4 ++-- 8 files changed, 22 insertions(+), 22 deletions(-) diff --git a/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandIris.java b/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandIris.java index d708b7b88..6068eb59a 100644 --- a/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandIris.java +++ b/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandIris.java @@ -502,7 +502,7 @@ public class CommandIris implements DirectorExecutor { } - @Director(description = "Unload an Iris World", descriptionKey = "iris.director.commandiris.director.unload_iris_world", origin = DirectorOrigin.PLAYER, sync = true) + @Director(name = "unload-world", description = "Unload an Iris World", descriptionKey = "iris.director.commandiris.director.unload_iris_world", origin = DirectorOrigin.PLAYER, sync = true) public void unloadWorld( @Param(description = "The world to unload", descriptionKey = "iris.director.commandiris.param.world_unload") World world @@ -622,7 +622,7 @@ public class CommandIris implements DirectorExecutor { } } - @Director(description = "Load an Iris World", descriptionKey = "iris.director.commandiris.director.load_iris_world", origin = DirectorOrigin.PLAYER, sync = true, aliases = {"import"}) + @Director(name = "load-world", description = "Load an Iris World", descriptionKey = "iris.director.commandiris.director.load_iris_world", origin = DirectorOrigin.PLAYER, sync = true, aliases = {"import"}) public void loadWorld( @Param( description = "The name of the world to load", diff --git a/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawAdopt.java b/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawAdopt.java index 3b082db13..61f971d4d 100644 --- a/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawAdopt.java +++ b/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawAdopt.java @@ -95,7 +95,7 @@ public class CommandJigsawAdopt implements DirectorExecutor { @Director(description = "Apply one inspected adoption plan without overwriting", sync = true, origin = DirectorOrigin.PLAYER) public void apply( - @Param(description = "Plan UUID returned by adopt inspect", + @Param(name = "plan-id", description = "Plan UUID returned by adopt inspect", customHandler = JigsawAdoptionPlanHandler.class) String planId ) { VolmitSender commandSender = sender(); diff --git a/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawPiece.java b/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawPiece.java index d8e7298eb..2aeb56fdc 100644 --- a/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawPiece.java +++ b/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawPiece.java @@ -25,8 +25,8 @@ public class CommandJigsawPiece implements DirectorExecutor { @Director(description = "Create an owned piece from the selected Studio topology", sync = true, origin = DirectorOrigin.PLAYER) public void create( - @Param(description = "Owned pool resource key") String poolKey, - @Param(description = "New owned piece and object key") String pieceKey, + @Param(name = "pool-key", description = "Owned pool resource key") String poolKey, + @Param(name = "piece-key", description = "New owned piece and object key") String pieceKey, @Param(description = "Positive selection weight", defaultValue = "1") int weight ) { CommandJigsaw.ActiveContext context = CommandJigsaw.active(player()); @@ -81,8 +81,8 @@ public class CommandJigsawPiece implements DirectorExecutor { @Director(description = "Add an existing jigsaw piece to an owned pool transactionally", sync = true, origin = DirectorOrigin.PLAYER) public void add( - @Param(description = "Owned pool resource key") String poolKey, - @Param(description = "Existing jigsaw piece key") String pieceKey, + @Param(name = "pool-key", description = "Owned pool resource key") String poolKey, + @Param(name = "piece-key", description = "Existing jigsaw piece key") String pieceKey, @Param(description = "Positive selection weight", defaultValue = "1") int weight ) { CommandJigsaw.ActiveContext context = CommandJigsaw.active(player()); @@ -153,7 +153,7 @@ public class CommandJigsawPiece implements DirectorExecutor { @Director(description = "Remove the selected piece from an owned pool transactionally", sync = true, origin = DirectorOrigin.PLAYER) public void remove( - @Param(description = "Owned pool resource key") String poolKey + @Param(name = "pool-key", description = "Owned pool resource key") String poolKey ) { CommandJigsaw.ActiveContext context = CommandJigsaw.active(player()); if (context == null) { diff --git a/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawPool.java b/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawPool.java index c67d522a0..d8818fcdb 100644 --- a/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawPool.java +++ b/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawPool.java @@ -10,8 +10,8 @@ public class CommandJigsawPool implements DirectorExecutor { @Director(description = "Create an empty owned jigsaw pool", sync = true, origin = DirectorOrigin.PLAYER) public void create( - @Param(description = "New owned pool resource key") String poolKey, - @Param(description = "Owned fallback pool key, or none", defaultValue = "none") + @Param(name = "pool-key", description = "New owned pool resource key") String poolKey, + @Param(name = "fallback-pool-key", description = "Owned fallback pool key, or none", defaultValue = "none") String fallbackPoolKey ) { CommandJigsaw.ActiveContext context = CommandJigsaw.active(player()); diff --git a/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawRules.java b/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawRules.java index 78b02d328..8b28c3690 100644 --- a/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawRules.java +++ b/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawRules.java @@ -13,8 +13,8 @@ public class CommandJigsawRules implements DirectorExecutor { @Director(description = "Set maximum expansion depth and horizontal radius", sync = true, origin = DirectorOrigin.PLAYER) public void limits( - @Param(description = "Maximum expansion depth") int maxDepth, - @Param(description = "Maximum radius in chunks") int maxSizeChunks + @Param(name = "max-depth", description = "Maximum expansion depth") int maxDepth, + @Param(name = "max-size-chunks", description = "Maximum radius in chunks") int maxSizeChunks ) { CommandJigsaw.ActiveContext context = CommandJigsaw.active(player()); if (context == null) { @@ -36,16 +36,16 @@ public class CommandJigsawRules implements DirectorExecutor { context, "", "", - "Persisted jigsaw limits: maxDepth=" + maxDepth - + ", maxSizeChunks=" + maxSizeChunks + "."); + "Persisted jigsaw limits: max-depth=" + maxDepth + + ", max-size-chunks=" + maxSizeChunks + "."); }); } @Director(description = "Set or clear one owned pool's direct fallback", sync = true, origin = DirectorOrigin.PLAYER) public void fallback( - @Param(description = "Owned pool resource key") String poolKey, - @Param(description = "Owned fallback pool key, or none") String fallbackPoolKey + @Param(name = "pool-key", description = "Owned pool resource key") String poolKey, + @Param(name = "fallback-pool-key", description = "Owned fallback pool key, or none") String fallbackPoolKey ) { CommandJigsaw.ActiveContext context = CommandJigsaw.active(player()); if (context == null) { diff --git a/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawVariant.java b/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawVariant.java index 64939ef51..e3c0afa30 100644 --- a/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawVariant.java +++ b/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawVariant.java @@ -16,7 +16,7 @@ public class CommandJigsawVariant implements DirectorExecutor { @Director(description = "Set the selected piece weight in a pool", sync = true, origin = DirectorOrigin.PLAYER) public void weight( - @Param(description = "Pool resource key") String poolKey, + @Param(name = "pool-key", description = "Pool resource key") String poolKey, @Param(description = "Positive selection weight") int weight ) { CommandJigsaw.ActiveContext context = CommandJigsaw.active(player()); @@ -85,7 +85,7 @@ public class CommandJigsawVariant implements DirectorExecutor { @Director(description = "Set the active variant's author-facing label", sync = true, origin = DirectorOrigin.PLAYER) public void label( - @Param(description = "Display label; quote labels containing spaces") String displayName + @Param(name = "display-name", description = "Display label; quote labels containing spaces") String displayName ) { CommandJigsaw.ActiveContext context = CommandJigsaw.active(player()); if (context == null) { @@ -147,7 +147,7 @@ public class CommandJigsawVariant implements DirectorExecutor { description = "Duplicate every enabled workcell's active variant as one coherent family", sync = true, origin = DirectorOrigin.PLAYER) public void duplicateFamily( - @Param(description = "Family key or next", defaultValue = "next") String themeKey + @Param(name = "theme-key", description = "Family key or next", defaultValue = "next") String themeKey ) { CommandJigsaw.ActiveContext context = CommandJigsaw.active(player()); if (context == null) { diff --git a/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawWorkcell.java b/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawWorkcell.java index 639827108..b78a7bd73 100644 --- a/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawWorkcell.java +++ b/adapters/bukkit/plugin/src/main/java/art/arcane/iris/command/CommandJigsawWorkcell.java @@ -43,7 +43,7 @@ public class CommandJigsawWorkcell implements DirectorExecutor { @Director(description = "Set the selected workcell's author-facing label", sync = true, origin = DirectorOrigin.PLAYER) public void label( - @Param(description = "Display label; quote labels containing spaces") String displayName + @Param(name = "display-name", description = "Display label; quote labels containing spaces") String displayName ) { CommandJigsaw.ActiveContext context = CommandJigsaw.active(player()); if (context == null) { diff --git a/adapters/bukkit/plugin/src/test/gameplay/world-lifecycle.mjs b/adapters/bukkit/plugin/src/test/gameplay/world-lifecycle.mjs index e8e2b5a9a..c582988b2 100644 --- a/adapters/bukkit/plugin/src/test/gameplay/world-lifecycle.mjs +++ b/adapters/bukkit/plugin/src/test/gameplay/world-lifecycle.mjs @@ -62,12 +62,12 @@ export default { }) await context.step('unload while the player is inside and verify evacuation', async () => { context.expect((await playerWorld()) === storageName, 'Player must be inside the world before unload') - await context.command(`/iris unloadWorld ${worldKey}`) + await context.command(`/iris unload-world ${worldKey}`) await wait(async () => await settledStatus('loaded=false registered=true configured=true disk=true'), 'World unloaded with storage preserved') await assertEvacuated('Unload evacuated the player to a loaded world') }) await context.step('reload the saved world and enter it again', async () => { - await context.command(`/iris loadWorld ${worldName}`) + await context.command(`/iris load-world ${worldName}`) await wait(async () => await settledStatus('loaded=true registered=true configured=true disk=true'), 'World reloaded') await context.command(`/iris tp ${worldKey}`) await assertSafeEntry()