How would i get the last 5 entries to a .yml list I'm using this to add the info into the list. Code:java List<String> list = this.customConfig.getStringList("log");list.add(log);this.customConfig.set("log", list);
A4Papers Load it all into a list, check the length and then take the last 5 entries using square brackets.
A4Papers Code:java int i = list.size();String 1st = list.get(i-5)//first oneString 2nd = list.get(i-4)//second one//etc...