mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-28 20:05:22 +09:00
Added /me and fixed some bugs in Commands
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
local Commands = require 'expcore.commands'
|
||||
require 'expcore.common_parse'
|
||||
|
||||
Commands.new_command('me','Sends an action message in the chat')
|
||||
:add_param('action',false)
|
||||
:enable_auto_concat()
|
||||
:register(function(player,action,raw)
|
||||
game.print(string.format('%s %s',player.name,action))
|
||||
game.print(string.format('* %s %s *',player.name,action),player.chat_color)
|
||||
end)
|
||||
@@ -8,8 +8,6 @@ Event.add(defines.events.on_console_chat,function(event)
|
||||
if event.player_index then game.print('Message: '..event.message) end
|
||||
end)
|
||||
|
||||
|
||||
|
||||
local Commands = require 'expcore.commands' -- require the Commands module
|
||||
|
||||
Commands.add_authenticator(function(player,command,tags,reject)
|
||||
|
||||
Reference in New Issue
Block a user