summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/MagicCarpet/coremessaging.lua
blob: 9fb2c0db1de991154250bea3492eee4630be3273 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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