Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String getLore(File file)
- {
- String line = "";
- try (BufferedReader br = new BufferedReader(new FileReader(file)))
- {
- while ((line = br.readLine()) != null)
- {
- if (line.contains("lore=[ "))
- {
- String[] jSplit = line.split("= ");
- String j2split = jSplit[1];
- return j2split;
- }
- }
- } catch (Exception ex)
- {
- ex.printStackTrace();
- }
- return line;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement