summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/MagicCarpet/coremessaging.lua
blob: acf21df5bd33dabd4b0f0d89b83d92432e2eeb23 (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