mclaunch 0.0.1 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/mclaunch.rb +1 -0
- data/lib/mclaunch/runtime.rb +7 -0
- data/lib/mclaunch/version.rb +1 -1
- metadata +1 -1
data/lib/mclaunch.rb
CHANGED
@@ -258,6 +258,7 @@ module Mclaunch
|
|
258
258
|
@runtime = Runtime.new(@options)
|
259
259
|
@tools = Tools.new(@runtime, @options)
|
260
260
|
@commands = Commands.new(@runtime, @options, @tools)
|
261
|
+
@runtime.tools(@tools)
|
261
262
|
@tools.commands(@commands)
|
262
263
|
@craftbukkit_version_regex = /^[1-9]\.[0-9]\.[0-9]-R[0-9]\.[0-9]$/
|
263
264
|
|
data/lib/mclaunch/runtime.rb
CHANGED
@@ -15,6 +15,7 @@ module Mclaunch
|
|
15
15
|
@multiplexer = @options[:server_terminal_multiplexer]
|
16
16
|
@multiplexer_session_name = @options[:server_terminal_multiplexer_name]
|
17
17
|
@multiplexer_session = @options[:server_terminal_multiplexer_session]
|
18
|
+
@tools = nil
|
18
19
|
end #end initialize
|
19
20
|
|
20
21
|
#setter for @options
|
@@ -42,6 +43,7 @@ module Mclaunch
|
|
42
43
|
|
43
44
|
#start server
|
44
45
|
def start
|
46
|
+
@tools.worlds_create_symlinks
|
45
47
|
send_command(@start_cmd)
|
46
48
|
end #end start
|
47
49
|
|
@@ -139,5 +141,10 @@ module Mclaunch
|
|
139
141
|
props
|
140
142
|
end #end get_server_properties
|
141
143
|
|
144
|
+
def tools(tools=nil)
|
145
|
+
@tools = tools
|
146
|
+
@toos unless @tools
|
147
|
+
end #end tools(tools=nil)
|
148
|
+
|
142
149
|
end #end Runtime
|
143
150
|
end
|
data/lib/mclaunch/version.rb
CHANGED