Skip to content

Commit bd2bfd0

Browse files
committed
Fix missing newlines in register_command example
1 parent a96d3af commit bd2bfd0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/laytonsmith/core/functions/Commands.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ public ExampleScript[] examples() throws ConfigCompileException {
330330
+ "\t'noPermMsg': 'You do not have permission to give hugs to players (Sorry :o).',\n"
331331
+ "\t'tabcompleter':\n"
332332
+ "\t\tclosure(@alias, @sender, @args) {\n"
333-
+ "\t\t\t// This replicates the default tabcompleter for registered commands."
334-
+ "\t\t\t// If no tabcompleter is set, this behavior is used."
333+
+ "\t\t\t// This replicates the default tabcompleter for registered commands.\n"
334+
+ "\t\t\t// If no tabcompleter is set, this behavior is used.\n"
335335
+ "\t\t\t@input = @args[-1];\n"
336336
+ "\t\t\treturn(array_filter(all_players(), closure(@key, @value) {\n"
337337
+ "\t\t\t\treturn(length(@input) <= length(@value)\n"
@@ -342,7 +342,7 @@ public ExampleScript[] examples() throws ConfigCompileException {
342342
+ "\t'executor':\n"
343343
+ "\t\tclosure(@alias, @sender, @args) {\n"
344344
+ "\t\t\tif(array_size(@args) == 1) {\n"
345-
+ "\t\t\t\t@target = @args[0];"
345+
+ "\t\t\t\t@target = @args[0];\n"
346346
+ "\t\t\t\tif(ponline(@target)) {\n"
347347
+ "\t\t\t\t\tbroadcast(colorize('&4'.@sender.' &6hugs &4'.@target));\n"
348348
+ "\t\t\t\t} else {\n"

0 commit comments

Comments
 (0)