Sha256: 2bfc38a124dac568fb7643db6e7284dba1f61185c21b6e78f17f9c6465eda77f

Contents?: true

Size: 469 Bytes

Versions: 1

Compression:

Stored size: 469 Bytes

Contents

module Bukkit
	class Server
		# Start the server.
		def self.start(options = {})
			if File.exists?("craftbukkit.jar")
				ram = options[:ram]

				puts "Starting your CraftBukkit server...".green
				if ram.nil?
					system 'java -jar craftbukkit.jar'
				else
					puts "Ram: ".blue + ram.to_s.light_blue
					system "java -Xmx#{ram}M -Xms#{ram}M -jar craftbukkit.jar"
				end
			else
				abort "You're not in your server's root directory.".red
			end
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bukkit-2.3.1 lib/bukkit/start.rb