public static String getName() { Pattern pattern = Pattern.compile("(?<=\"name\":\")[A-Za-z0-9\\s]{1,}"); Matcher matcher = pattern.matcher(Json); while (matcher.find()) return(matcher.group()); return "null"; }
Add that to it. It's needed for failsafes as some items will return the wrong price. ie. "roll" which doesn't exist on zybez so it will return like 1m