Skip to content

Commit

Permalink
Add ASCII mode to /cbook
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthcomputer committed Jan 26, 2019
1 parent 3085a0c commit 708e79e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public void execute(MinecraftServer server, ICommandSender sender, String[] args
case "random":
characterGenerator = rand.ints(0x80, 0x10ffff - 0x800).map(i -> i < 0xd800 ? i : i + 0x800);
break;
case "ascii":
characterGenerator = rand.ints(0x20, 0x7f);
default:
throw new CommandException(getUsage(sender));
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/clientcommands/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ commands.cabort.usage=/cabort
commands.cbook.success=Successfully edited book
commands.cbook.noBook=You are not holding a book
commands.cbook.noPlayer=You are not a player
commands.cbook.usage=/cbook <fill|random> [pages] [random-seed]
commands.cbook.usage=/cbook <fill|random|ascii> [pages] [random-seed]

commands.ccalc.mathError=Math error: %s
commands.ccalc.syntaxError=Syntax error
Expand Down

0 comments on commit 708e79e

Please sign in to comment.