summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/MagicCarpet/coremessaging.lua
diff options
context:
space:
mode:
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