Advertisement
Guest User

Code

a guest
Feb 21st, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. public String getLore(File file)
  2. {
  3. String line = "";
  4. try (BufferedReader br = new BufferedReader(new FileReader(file)))
  5. {
  6. while ((line = br.readLine()) != null)
  7. {
  8. if (line.contains("lore=[ "))
  9. {
  10. String[] jSplit = line.split("= ");
  11. String j2split = jSplit[1];
  12. return j2split;
  13. }
  14. }
  15.  
  16. } catch (Exception ex)
  17. {
  18. ex.printStackTrace();
  19. }
  20. return line;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement