Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def command= (com)
- com = com.is_a?(Array) ? com : com.split(' ')
- if com[1]
- if com[0] == "jump"
- com[1] = (com[2].nil? ? com[1] : com[2])
- com.delete_at(2) if com[2]
- else
- com[1] = com[1].to_i
- end
- end
- @h['fields']['__command__'] = com
- end
Add Comment
Please, Sign In to add comment