summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/gm.lua
blob: 5aa6cb2f3cc87b606892ee841d198fdc9cfa7be1 (plain) (blame)
1
2
3
4
5
6
7
8
function HandleChangeGMCommand( Split, Player )
	if( #Split ~= 2 ) then
		Player:SendMessage(cChatColor.Yellow .. "[INFO] " .. cChatColor.White .. "Usage: /gm [GameMode (0|1)]" )
		return true
	end
	Player:SetGameMode(Split[2])
	return true
end