summaryrefslogblamecommitdiffstats
path: root/MCServer/Plugins/Core/me.lua
blob: 5ae15b97db9ccc6ec37f3e04c9442560d09dcfb4 (plain) (tree)
1
2
3
4
5
6
7
8






                                                 
                                                                                                       


                             
                                                                                 


                   
function HandleMeCommand( Split, Player )
  table.remove(Split, 1);
	local Message = "";
	for i, Text in ipairs(Split) do
		Message = Message .. " " .. Text;
	end
    if  (Split[1] == nil) then
        Player:SendMessage(cChatColor.Yellow .. "[INFO] " .. cChatColor.White .. "Usage: /me <action>")
        return true
    end
    if (Split[1] ~= nil) then
        cRoot:Get():GetServer():BroadcastChat(Player:GetName() .. "" .. Message);
        return true
    end
end