Files
cuberite-2a/MCServer/Plugins/Core/me.lua
T

21 lines
384 B
Lua
Raw Normal View History

2013-07-27 19:45:44 +01:00
function HandleMeCommand( Split, Player )
2013-08-11 16:00:53 +01:00
table.remove( Split, 1 )
local Message = ""
for i, Text in ipairs( Split ) do
Message = Message .. " " .. Text
2013-07-27 19:45:44 +01:00
end
2013-08-11 16:00:53 +01:00
if Split[1] == nil then
SendMessage( Player, "Usage: /me <action>" )
2013-08-02 07:48:47 +01:00
return true
end
2013-08-11 16:00:53 +01:00
if Split[1] ~= nil then
cRoot:Get():GetServer():BroadcastChat( Player:GetName() .. "" .. Message )
2013-08-02 07:48:47 +01:00
return true
end
2013-08-11 16:00:53 +01:00
2013-07-27 19:45:44 +01:00
end