2022-06-18 16:14:55 +03:00
|
|
|
-----------------------------------
|
|
|
|
|
-- func: test
|
|
|
|
|
-- desc: A test command module
|
|
|
|
|
-----------------------------------
|
2024-08-25 10:54:45 -04:00
|
|
|
---@type TCommand
|
2023-09-01 17:11:50 -04:00
|
|
|
local commandObj = {}
|
2022-06-18 16:14:55 +03:00
|
|
|
|
2023-09-01 17:11:50 -04:00
|
|
|
commandObj.cmdprops =
|
2022-06-18 16:14:55 +03:00
|
|
|
{
|
|
|
|
|
permission = 1,
|
2023-09-02 07:17:17 -04:00
|
|
|
parameters = '',
|
2022-06-18 16:14:55 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
local function double_print(player, str)
|
|
|
|
|
print(str)
|
2024-02-29 10:30:59 +07:00
|
|
|
player:printToPlayer(str, xi.msg.channel.SYSTEM_3, '')
|
2022-06-18 16:14:55 +03:00
|
|
|
end
|
|
|
|
|
|
2023-09-01 17:11:50 -04:00
|
|
|
commandObj.onTrigger = function(player)
|
2023-09-02 07:17:17 -04:00
|
|
|
double_print(player, 'Test print')
|
2022-06-18 16:14:55 +03:00
|
|
|
end
|
2023-09-01 17:11:50 -04:00
|
|
|
|
|
|
|
|
return commandObj
|