So, I want to be able to create a list in my plugin's configuration file. I basically want to have an array of block IDs. I see the getList() method, but I have no idea how to use it. How can I read a YAML list into an int[] or String[]? Thanks!
PHP: Object[] obl =yml.getList("whatever your list is under").toArray();len = obl.length;String[] result={};for(int i=0;i<len;i++){ result[i]=(String)obl[i];} if this helps. you can also probably use getKeys("same path as above") instead, but idk.
Oh, I see, thanks. Looking in the Javadoc, I see there's a getIntList method, which I think I'll use. Thanks again, I should've seen that.