I'm currently creating a Plot plugin (I know there is one, but I'm making one anyway), and I don't really know how I should handle each plot property, which I have them stored in a yml file. Of course, I would have to access each plot data everytime something happens on them, such as block break, pvp, etc. So my question is, would it be a much better practice to store active Plot object in a single array, or is config fast and light enough that it shouldn't be much of a problem if just access/store data to config everytime it's needed?
Configs are not a database. Anytime you want to access a single part of the data it contains it's necessary to load the entire file into memory. So yes, it's slow, and it gets slower and slower the more data you have. if you want to store structured data for a program to read, you should consider using a proper database like sqlite3. Please shut up if you're not going to provide a sensible answer to the actual question.