quectocraft2/plugins/example.lua
2023-07-26 00:53:51 -04:00

21 lines
438 B
Lua

return {
id = "example",
name = "Example Plugin",
version = "0.1.0",
authors = {"John Doe", "Jane Doe"},
description = "Example plugin",
license = "MIT",
init = function(self, srv)
self.info("initializing " .. self.name)
end,
on_join = function(self, srv, uuid, name)
srv:kick(uuid, "people named " .. name .. " are not allowed here")
end,
on_leave = function(self, srv, uuid, name)
self.info(name .. " left")
end,
}