mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
15 lines
554 B
Lua
15 lines
554 B
Lua
--[[-- Commands - Me
|
|
Adds a command that adds * around your message in the chat
|
|
]]
|
|
|
|
local Commands = require("modules/exp_commands")
|
|
local format_text = Commands.format_rich_text_color_locale
|
|
|
|
--- Sends an action message in the chat
|
|
Commands.new("me", { "exp-commands_me.description" })
|
|
:argument("action", { "exp-commands_me.arg-action" }, Commands.types.string)
|
|
:enable_auto_concatenation()
|
|
:register(function(player, action)
|
|
game.print(format_text({ "exp-commands_me.response", player.name, action, }, player.chat_color))
|
|
end)
|