mirror of
https://github.com/YouHaveTrouble/BlockEdit.git
synced 2026-06-29 21:46:19 +00:00
fixed command argument order
This commit is contained in:
@@ -256,7 +256,6 @@ public class BlockEditCommands {
|
|||||||
player.sendMessage(Component.text(BELocale.getLocale(player.locale()).settingBlocks, NamedTextColor.GRAY));
|
player.sendMessage(Component.text(BELocale.getLocale(player.locale()).settingBlocks, NamedTextColor.GRAY));
|
||||||
return Command.SINGLE_SUCCESS;
|
return Command.SINGLE_SUCCESS;
|
||||||
})
|
})
|
||||||
)
|
|
||||||
.then(
|
.then(
|
||||||
Commands.argument("chunks_per_tick", IntegerArgumentType.integer(1))
|
Commands.argument("chunks_per_tick", IntegerArgumentType.integer(1))
|
||||||
.executes(ctx -> {
|
.executes(ctx -> {
|
||||||
@@ -269,6 +268,8 @@ public class BlockEditCommands {
|
|||||||
player.sendMessage(Component.text(BELocale.getLocale(player.locale()).settingBlocks, NamedTextColor.GRAY));
|
player.sendMessage(Component.text(BELocale.getLocale(player.locale()).settingBlocks, NamedTextColor.GRAY));
|
||||||
return Command.SINGLE_SUCCESS;
|
return Command.SINGLE_SUCCESS;
|
||||||
}))
|
}))
|
||||||
|
)
|
||||||
|
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -293,7 +294,6 @@ public class BlockEditCommands {
|
|||||||
player.sendMessage(Component.text(BELocale.getLocale(player.locale()).replacingBlocks, NamedTextColor.GRAY));
|
player.sendMessage(Component.text(BELocale.getLocale(player.locale()).replacingBlocks, NamedTextColor.GRAY));
|
||||||
return Command.SINGLE_SUCCESS;
|
return Command.SINGLE_SUCCESS;
|
||||||
})
|
})
|
||||||
)
|
|
||||||
.then(
|
.then(
|
||||||
Commands.argument("chunks_per_tick", IntegerArgumentType.integer(1))
|
Commands.argument("chunks_per_tick", IntegerArgumentType.integer(1))
|
||||||
.executes(ctx -> {
|
.executes(ctx -> {
|
||||||
@@ -308,6 +308,7 @@ public class BlockEditCommands {
|
|||||||
return Command.SINGLE_SUCCESS;
|
return Command.SINGLE_SUCCESS;
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user