First commit
This commit is contained in:
		
							
								
								
									
										13
									
								
								app/SabrehavenServer/data/talkactions/scripts/openserver.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								app/SabrehavenServer/data/talkactions/scripts/openserver.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
function onSay(player, words, param)
 | 
			
		||||
	if not player:getGroup():getAccess() then
 | 
			
		||||
		return true
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	if player:getAccountType() < ACCOUNT_TYPE_GOD then
 | 
			
		||||
		return false
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	Game.setGameState(GAME_STATE_NORMAL)
 | 
			
		||||
	player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Server is now open.")
 | 
			
		||||
	return false
 | 
			
		||||
end
 | 
			
		||||
		Reference in New Issue
	
	Block a user