summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/MagicCarpet/coremessaging.lua
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-08 22:52:12 +0200
committermadmaxoft <github@xoft.cz>2013-10-08 22:52:12 +0200
commit06c8217b65a36dd42fed3b2d4317a056f03d2f1a (patch)
tree28e8a4204a97101c3faca697a183c174bdd3de24 /MCServer/Plugins/MagicCarpet/coremessaging.lua
parentFixed WebAdmin template after moving the memory stats functions to cRoot. (diff)
parentSome additional changes (diff)
downloadcuberite-06c8217b65a36dd42fed3b2d4317a056f03d2f1a.tar
cuberite-06c8217b65a36dd42fed3b2d4317a056f03d2f1a.tar.gz
cuberite-06c8217b65a36dd42fed3b2d4317a056f03d2f1a.tar.bz2
cuberite-06c8217b65a36dd42fed3b2d4317a056f03d2f1a.tar.lz
cuberite-06c8217b65a36dd42fed3b2d4317a056f03d2f1a.tar.xz
cuberite-06c8217b65a36dd42fed3b2d4317a056f03d2f1a.tar.zst
cuberite-06c8217b65a36dd42fed3b2d4317a056f03d2f1a.zip
Diffstat (limited to 'MCServer/Plugins/MagicCarpet/coremessaging.lua')
-rw-r--r--MCServer/Plugins/MagicCarpet/coremessaging.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/MCServer/Plugins/MagicCarpet/coremessaging.lua b/MCServer/Plugins/MagicCarpet/coremessaging.lua
new file mode 100644
index 000000000..9fb2c0db1
--- /dev/null
+++ b/MCServer/Plugins/MagicCarpet/coremessaging.lua
@@ -0,0 +1,19 @@
+Core = cPluginManager:Get():GetPlugin("Core")
+
+function SendMessage(a_Player, a_Message)
+ if (Core ~= nil) then
+ Core:Call("SendMessage", a_Player, a_Message)
+ end
+end
+
+function SendMessageSuccess(a_Player, a_Message)
+ if (Core ~= nil) then
+ Core:Call("SendMessageSuccess", a_Player, a_Message)
+ end
+end
+
+function SendMessageFailure(a_Player, a_Message)
+ if (Core ~= nil) then
+ Core:Call("SendMessageFailure", a_Player, a_Message)
+ end
+end