script/phd_generator.rb
#Reads the Minecraft whitelist file if is in the same directory as this file.
#It parses all the users and put them in an Array
#Returns Array with all users in the whitelist
Reads the Minecraft whitelist file if is in the same directory as this file.
It parses all the users and put them in an Array
Returns Array with all users in the whitelist
Reads the Minecraft whitelist file if is in the same directory as this file . It parses all the users and put them in an Array Returns Array with all users in the whitelist
def readWhitelist filename="whitelist.json"
	list = Array.new
	json = JSON.parse File.read(filename)
	json.each{ |user| list << user["name"] }
	return list
end
def readWhitelist filename = "whitelist.json" list = Array . new json = JSON . parse File . read ( filename ) json . each { | user | list << user [ "name" ] } return list end
Reads the Minecraft whitelist file if is in the same directory as this file.
Reads the Minecraft whitelist file if is in the same directory as this file .
#p json
filename