bukkit 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88fa16b4862b5ffae3094cd96d569bcbdb29e940
4
- data.tar.gz: 1412a145cab458c801fc23879deb8a32a3f80ff8
3
+ metadata.gz: e2fd888c3cb4f276e1cc7cc78d39cf55e75de556
4
+ data.tar.gz: 756981781a704db4f4a140f61f3041d2a1e21f8d
5
5
  SHA512:
6
- metadata.gz: 1301adbf4fd1ecb932cea031b0ee345514d87520d1336be7ab6321193241a3e92570c04dbd721d3478e723727abc409b69e8135e71c9c74fad9b378427cf6626
7
- data.tar.gz: 2a74a381178edb239beb6d7b3f32f8ef524c166e61279beccda7072243b7123fa802d6713c16fd1811be706254e47ef17093998de7e1c82bcbaa67709bef1f11
6
+ metadata.gz: 65a0cfb1fe5a0601299c316a616547f1c86ee3370a0983d7a39cde1385e5408b3153b91926df03a85d46a7bbf82f212ba141e4e3904f73fe9bbf8336ce32a4a9
7
+ data.tar.gz: 9277658dcddb397f91d953e865dd5bfe3bd0137f37c0f3fac7797ebb051caf0d9ba74e65d94c327aceec069fa63825c37e3f15c847193f02398648bb353ae392
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bukkit (2.1.1)
4
+ bukkit (2.1.3)
5
5
  archive-zip
6
6
  colorize
7
7
  commander
data/bin/bukkit CHANGED
@@ -132,9 +132,10 @@ command :website do |c|
132
132
  c.option "--url", "Show just the plugin's URL."
133
133
 
134
134
  c.action do |args, options|
135
- abort "You didn't enter a plugin name." if args.shift.nil?
135
+ plugin_name = args.shift
136
+ abort "You didn't enter a plugin name." if plugin_name.empty?
136
137
 
137
- plugin = Bukkit::Plugin.new(args.shift)
138
+ plugin = Bukkit::Plugin.new(plugin_name)
138
139
 
139
140
  if options.url
140
141
  puts " Website: ".yellow + plugin.website
data/lib/bukkit/start.rb CHANGED
@@ -2,8 +2,12 @@ module Bukkit
2
2
  class Server
3
3
  # Start the server.
4
4
  def self.start
5
- puts "Starting your CraftBukkit server.".green
6
- system 'java -jar craftbukkit.jar'
5
+ if File.exists?("craftbukkit.jar")
6
+ abort "You're not in your server's root directory.".red
7
+ else
8
+ puts "Starting your CraftBukkit server.".green
9
+ system 'java -jar craftbukkit.jar'
10
+ end
7
11
  end
8
12
  end
9
13
  end
@@ -1,4 +1,4 @@
1
1
  module Bukkit
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
3
3
  VERSION_FULL = "Bukkit-CLI v#{VERSION}"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bukkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Herrick