···9494 player.sendMessage(Text.translatable("error.infinity." + type + ".unexpected"));
9595 }
96969797+ static String dimTextPreprocess(String text) {
9898+ if (RandomProvider.rule("forceLowercase")) text = text.toLowerCase();
9999+ text = text.replaceAll("\n", " ");
100100+ return text;
101101+ }
102102+97103 /**
98104 * Convert a provided string into a dimension ID.
99105 * This also checks if it matches an Easter Egg dimension.
···5454 * Handles the /warp text command, warping the player to a specified dimension. This is the same as writing the input into a book.
5555 */
5656 static void requestWarpByText(CommandContext<ServerCommandSource> context, String value) {
5757+ value = InfinityMethods.dimTextPreprocess(value);
5758 Identifier id = InfinityMethods.dimTextToId(value);
5859 requestWarp(context.getSource().getPlayer(), id, true);
5960 PortalCreator.recordIdTranslation(context.getSource().getServer(), id, value);