This may not actually be every file, but I did the best I could.
Command applied:
find . -type f -name "*.lua" | xargs -d '\n' sed -i 's/;//g'
Semicolons are not appropriate in Lua per the style guidelines:
https://github.com/project-topaz/topaz/blob/master/CONTRIBUTING.md
31 lines
No EOL
832 B
Lua
31 lines
No EOL
832 B
Lua
---------------------------------------------------------------------------------------------------
|
|
-- func: messagebasic
|
|
-- desc: Injects a message basic packet.
|
|
---------------------------------------------------------------------------------------------------
|
|
|
|
cmdprops =
|
|
{
|
|
permission = 1,
|
|
parameters = "iii"
|
|
}
|
|
|
|
function error(player, msg)
|
|
player:PrintToPlayer(msg)
|
|
player:PrintToPlayer("!messagebasic <message ID> {param1} {param2}")
|
|
end
|
|
|
|
function onTrigger(player, msgId, param1, param2)
|
|
-- validate msgId
|
|
if (msgId == nil) then
|
|
error(player, "You must provide a message ID.")
|
|
return
|
|
end
|
|
|
|
local target = player:getCursorTarget()
|
|
if target == nil then
|
|
target = player
|
|
end
|
|
|
|
-- inject message packet
|
|
player:messageBasic(msgId, param1, param2, target)
|
|
end |