mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
Migrate all commands to new lib
This commit is contained in:
14
exp_scenario/module/commands/me.lua
Normal file
14
exp_scenario/module/commands/me.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
--[[-- 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)
|
||||
Reference in New Issue
Block a user