minetest.register chatcommand

Description
Registers a chat command.

Parameters
1: Name of the command

2: A list containing the following:

params - string - Parameter info (used in /help)

description - string - Command description (used in /help)

privs - optional list of booleans - Require special privileges to run

func - function - Function the command should execute: should return true for success and false for error along with a string message
 * Note that the first param of func, name, is not necessarily the name of a player on the server, this case may happen with the irc mod.