Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def spawn(user1)
- file = File.open("server.log", "r")
- file.each_line do |line|
- if line=/<.>\s\.spawn/
- user1 = user1.sub!(/<.>/, "")
- system("screen -S minecraft -p 0 -X stuff 'say it works for #{user1} $(printf '\r')")
- end
- spawn()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement