diff options
Diffstat (limited to 'MCServer/Plugins/Core/me.lua')
-rw-r--r-- | MCServer/Plugins/Core/me.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/MCServer/Plugins/Core/me.lua b/MCServer/Plugins/Core/me.lua new file mode 100644 index 000000000..8717a097e --- /dev/null +++ b/MCServer/Plugins/Core/me.lua @@ -0,0 +1,15 @@ +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("Usage: /me <action>") + return true + end + if (Split[1] ~= nil) then + cRoot:Get():GetServer():BroadcastChat(Player:GetName().. ""..Message); + return true + end +end |