21 lines
438 B
Lua
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,
|
||
|
}
|