diff options
author | madmaxoft <github@xoft.cz> | 2013-10-08 22:52:12 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-08 22:52:12 +0200 |
commit | 06c8217b65a36dd42fed3b2d4317a056f03d2f1a (patch) | |
tree | 28e8a4204a97101c3faca697a183c174bdd3de24 /MCServer/Plugins/MagicCarpet/coremessaging.lua | |
parent | Fixed WebAdmin template after moving the memory stats functions to cRoot. (diff) | |
parent | Some additional changes (diff) | |
download | cuberite-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.lua | 19 |
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 |