Guest User

Untitled

a guest
Jun 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. def command= (com)
  2.  
  3. com = com.is_a?(Array) ? com : com.split(' ')
  4. if com[1]
  5. if com[0] == "jump"
  6. com[1] = (com[2].nil? ? com[1] : com[2])
  7. com.delete_at(2) if com[2]
  8. else
  9. com[1] = com[1].to_i
  10. end
  11. end
  12.  
  13. @h['fields']['__command__'] = com
  14. end
Add Comment
Please, Sign In to add comment