document command params

This commit is contained in:
flux 2022-09-30 10:22:14 -07:00
parent a4a3940415
commit 5140d71900
No known key found for this signature in database
GPG key ID: 9333B27816848A15

View file

@ -1,6 +1,7 @@
local S = default.get_translator local S = default.get_translator
minetest.register_chatcommand("run_in_book", { minetest.register_chatcommand("run_in_book", {
params = "<command> [<args>]",
description = "run the command; put the output in the book's body", description = "run the command; put the output in the book's body",
func = function(name, param) func = function(name, param)
local player = minetest.get_player_by_name(name) local player = minetest.get_player_by_name(name)