use same params and types format for all of lib

This commit is contained in:
Luke committed 2022-09-17 13:25:20 +02:00
1 parent e3293c2109
commit 6c2ab8f8ec
14 files changed
+114 -67

No files matched your search

+7 -5
View File
@@ -1,11 +1,13 @@
```lua
-- principal: string or string[] or false
-- command: string
-- callback: function
-- parameters: table (optional)
-- help: string (optional)
lib.addCommand(principal, command, callback, parameters, help)
```
* principal: `string` or `string[]` or `false`
* command: `string`
* callback: `function`
* parameters?: `table` (`array`)
* help?: `string`
```lua
lib.addCommand('group.admin', {'additem', 'giveitem'}, function(source, args)
args.item = Items(args.item)
if args.item and args.count > 0 then