Skip to content

Commit 8e04a81

Browse files
committed
fix command example
1 parent 66c61d6 commit 8e04a81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

getting-started.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ end
122122

123123
script:registerCommand(function(sender, args)
124124
-- Joining arguments to string using space as delimiter.
125-
local message = table.concat(args, " ")
125+
-- java.luaify(...) function is responsible for converting Java objects to Lua. In this case, it converts String[] to a Lua table.
126+
local message = table.concat(java.luaify(args), " ")
126127
-- Sending message back to the sender.
127128
sender:sendRichMessage(message)
128129
end, {

0 commit comments

Comments
 (0)