Sha256: df52ff8de74756866b399d454265adf6db3df8aa07681472e2637d91bb0645eb
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
module Bukkit def self.update begin puts " Do want the recommended build, beta build, or dev build?" print " rb, beta, dev? " q1 = $stdin.gets.chomp case q1 when "rb", "recommended", "r" puts "Downloading CraftBukkit Recommended build... (this could take a minute)\n" Bukkit::download("craftbukkit.jar", "http://cbukk.it/craftbukkit.jar") puts "\nSuccessfully updated." when "beta", "b" puts "Downloading CraftBukkit Beta build... (this could take a minute)\n" Bukkit::download("craftbukkit.jar", "http://cbukk.it/craftbukkit-beta.jar") puts "\nSuccessfully updated." when "dev", "development", "d" puts "Downloading CraftBukkit Development build... (this could take a minute)\n" Bukkit::download("craftbukkit.jar", "http://cbukk.it/craftbukkit-dev.jar") puts "\nSuccessfully updated." else if q1.length > 0 abort(" \"#{q1}\" is not an option.") else abort(" You didn't enter an option.") end end rescue puts "Uh oh! Something failed. Please report what you were doing at the time of this bug, and any other info you have at: https://github.com/JesseHerrick/bukkit/issues/new" Bukkit::Help.update end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bukkit-0.1.4 | lib/bukkit/update.rb |