Advertisement
Guest User

lol..

a guest
Apr 14th, 2014
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.24 KB | None | 0 0
  1. def spawn(user1)
  2.     file = File.open("server.log", "r")
  3.     file.each_line do |line|
  4.     if line=/<.>\s\.spawn/
  5.         user1 = user1.sub!(/<.>/, "")
  6.         system("screen -S minecraft -p 0 -X stuff 'say it works for #{user1} $(printf '\r')")  
  7. end
  8.  
  9. spawn()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement