summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/tell.lua
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-16 09:20:05 +0200
committermadmaxoft <github@xoft.cz>2013-08-16 09:20:34 +0200
commit98d574f05ea46763fc9e762b0719ab3ef2271230 (patch)
tree65d6a2f1bc97f800839fd65c7f459bb908e459c2 /MCServer/Plugins/Core/tell.lua
parentMerge pull request #96 from mc-server/buildsystest (diff)
downloadcuberite-98d574f05ea46763fc9e762b0719ab3ef2271230.tar
cuberite-98d574f05ea46763fc9e762b0719ab3ef2271230.tar.gz
cuberite-98d574f05ea46763fc9e762b0719ab3ef2271230.tar.bz2
cuberite-98d574f05ea46763fc9e762b0719ab3ef2271230.tar.lz
cuberite-98d574f05ea46763fc9e762b0719ab3ef2271230.tar.xz
cuberite-98d574f05ea46763fc9e762b0719ab3ef2271230.tar.zst
cuberite-98d574f05ea46763fc9e762b0719ab3ef2271230.zip
Diffstat (limited to 'MCServer/Plugins/Core/tell.lua')
-rw-r--r--MCServer/Plugins/Core/tell.lua37
1 files changed, 0 insertions, 37 deletions
diff --git a/MCServer/Plugins/Core/tell.lua b/MCServer/Plugins/Core/tell.lua
deleted file mode 100644
index 7d5a44f34..000000000
--- a/MCServer/Plugins/Core/tell.lua
+++ /dev/null
@@ -1,37 +0,0 @@
-function HandleTellCommand(Split, Player, OtherPlayer)
- if (Split[2] == nil) or (Split[3] == nil) then
- Player:SendMessage(cChatColor.Yellow .. "[INFO] " .. "Usage: /tell [playername] [message]")
- return true
- end
-
- local SendMessage = function(OtherPlayer)
-
- Sender = Player:GetName()
- Reciever = Split[2]
-
- if (OtherPlayer:GetName() == Split[2]) then
- Server = cRoot:Get():GetServer()
- FullMsg = ""
-
- for i,v in ipairs(Split) do
- if(i>2) then
- if(FullMsg == "") then
- FullMsg = v
- else
- FullMsg = FullMsg .. " " .. v
- end
- end
- end
-
- Player:SendMessage(cChatColor.Green .. "[INFO] " .. "Message to player " .. Reciever .. " sent!" )
- OtherPlayer:SendMessage(cChatColor.Orange .. "[MSG: " .. Sender .. " ] " .. FullMsg )
- else
- Player:SendMessage(cChatColor.Red .. 'Player "' ..Split[2].. '" not found')
- end
- end
-
- cRoot:Get():ForEachPlayer(SendMessage)
- return true;
-end
-
-