feat(commands): add a RegisterCommand wrapper

This commit is contained in:
Linden
2021-12-30 02:25:00 +11:00
parent d0c5f722db
commit b8ad392692
4 changed files with 53 additions and 16 deletions

View File

@@ -3,7 +3,8 @@
--- Alias for `exports['pe-lualib']`
lib = setmetatable({}, {
__newindex = function(_, name, fn)
__newindex = function(self, name, fn)
exports(name, fn)
rawset(self, name, fn)
end
})