summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/gm.lua
blob: 8e6a1a12feff8caffb7c6fc0de6c7c0c73305565 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
function HandleChangeGMCommand( Split, Player )

	if( #Split ~= 2 ) then
		SendMessage( Player, "Usage: /gm [0|1]" )
		return true
	end

	Player:SetGameMode( Split[2] )
	return true

end