quectocraft/plugins/testcmd.lua

24 lines
461 B
Lua
Raw Normal View History

2022-12-17 05:10:01 +00:00
local plugin = {
id = "testcmd",
name = "TestCmd",
description = "eufdahjklfhjakl",
authors = { "trimill" },
version = "0.1.0",
}
local logger = nil
function plugin.init()
logger = server.initLogger(plugin)
end
function plugin.registerCommands(registry)
registry.addCommand("test")
end
function plugin.command(command, args, name, uuid)
logger.info("player " .. name .. " ran /" .. command .. " " .. args)
end
return plugin