summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/me.lua
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-07-27 20:45:44 +0200
committerAlexander Harkness <bearbin@gmail.com>2013-07-27 20:45:44 +0200
commit0799661ff78526cc439b5d498c324b581265137c (patch)
tree3716495e72efd60d490bdbd688d1600c46de9fa9 /MCServer/Plugins/Core/me.lua
parentFixed very minor issue in template.html (diff)
downloadcuberite-0799661ff78526cc439b5d498c324b581265137c.tar
cuberite-0799661ff78526cc439b5d498c324b581265137c.tar.gz
cuberite-0799661ff78526cc439b5d498c324b581265137c.tar.bz2
cuberite-0799661ff78526cc439b5d498c324b581265137c.tar.lz
cuberite-0799661ff78526cc439b5d498c324b581265137c.tar.xz
cuberite-0799661ff78526cc439b5d498c324b581265137c.tar.zst
cuberite-0799661ff78526cc439b5d498c324b581265137c.zip
Diffstat (limited to 'MCServer/Plugins/Core/me.lua')
-rw-r--r--MCServer/Plugins/Core/me.lua15
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