minecraft-server 0.0.1.pre.29 → 0.0.1.pre.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/bin/minecraft-server-console +22 -0
- metadata +3 -3
- data/bin/minecraft-server +0 -12
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzBhMWRiNDdhMTU1YjQxNzFhZGYzZjkzMWQ1OGMxYmIxODVhNTgxMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjVhZGI1MTExYThiZGZmMzY0YjI2MWRkNWUzZGE1NjE5ZjVkNmQ0OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGY0NTExYjExN2I0N2ZkN2EwM2VmNTU1ZGZjYTk5NDlmMzJhYzhkMzk1NTYy
|
10
|
+
NTM4NzUyZjY0MWU0ZWE0YWI3Nzk1ZThlZDA3ZTRlNDU4NWYzNjE5ZDRhNzVl
|
11
|
+
MDFmM2EwMjI2NGJjYWMwNjljNjI1ZjRjYjkyMzAyZGU2OTZjODk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjBiODM3OWE2YmZkYTA2Nzg4ZmM3MmRjZTg2YjE3ZTkzYWJlOTY2MDJiZDJm
|
14
|
+
MGNkY2M1NmUxMmRiYWQwMTI1OTc2ZDRiMGEzYjViNzhlOGM2M2E0OGFlNzlm
|
15
|
+
NmE4ZmFiZTMzMWFlYzJiMTU2OTY5MTBmNmRiYTk2NGExOTE0NmY=
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'cli-console'
|
2
|
+
require 'highline'
|
3
|
+
require 'thread'
|
4
|
+
|
5
|
+
require 'minecraft/server/threads'
|
6
|
+
require 'minecraft/server/console'
|
7
|
+
|
8
|
+
cli_thread = Thread.new do
|
9
|
+
io = HighLine.new
|
10
|
+
cli = CLI::Console.new io
|
11
|
+
cli.addExitCommand 'stop'
|
12
|
+
cli.start('> ',[Dir.method(:pwd)])
|
13
|
+
end
|
14
|
+
|
15
|
+
server_thread = Thread.new do
|
16
|
+
console = Minecraft::Server::Console.new
|
17
|
+
end
|
18
|
+
|
19
|
+
threads = [cli_thread, server_thread]
|
20
|
+
threads.each do |thread|
|
21
|
+
thread.join
|
22
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minecraft-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.pre.
|
4
|
+
version: 0.0.1.pre.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kepler Sticka-Jones
|
@@ -129,7 +129,7 @@ description: ! 'Minecraft Server written purely in Ruby, capable of running as a
|
|
129
129
|
email:
|
130
130
|
- kbsj269@gmail.com
|
131
131
|
executables:
|
132
|
-
- minecraft-server
|
132
|
+
- minecraft-server-console
|
133
133
|
extensions: []
|
134
134
|
extra_rdoc_files: []
|
135
135
|
files:
|
@@ -139,7 +139,7 @@ files:
|
|
139
139
|
- LICENSE.txt
|
140
140
|
- README.md
|
141
141
|
- Rakefile
|
142
|
-
- bin/minecraft-server
|
142
|
+
- bin/minecraft-server-console
|
143
143
|
- lib/minecraft/server.rb
|
144
144
|
- lib/minecraft/server/config.rb
|
145
145
|
- lib/minecraft/server/console.rb
|
data/bin/minecraft-server
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'highline'
|
2
|
-
require 'cli-console'
|
3
|
-
|
4
|
-
require 'minecraft/server/console'
|
5
|
-
|
6
|
-
io = HighLine.new
|
7
|
-
cli = Minecraft::Server::Console.new
|
8
|
-
console = CLI::Console.new io
|
9
|
-
|
10
|
-
console.addExitCommand 'stop', cli.stop
|
11
|
-
|
12
|
-
console.start('> ',[Dir.method(:pwd)])
|