Separate names with a comma.
Comments in 'Plugin Development' started by wviper3, Jul 14, 2014.
Use a database. This way would cause lag in large servers.
Yeah, I know. That code I'm using was updated to SQLite later on, but he asked for yaml so I gave it.
I am, but I do not understand the set command and the docs are very confusing. I did $this->saves->players because I wanted to access the array, but now I know how.
Oh yeah I forgot there are __set() and __get() functions in Config too, but I don't like using them as they sound unstable to me.
I am confused and it is too hard to save data in YAML, so if you guys could tell me how to save data with SQLite I would greatly appreciate it. I have found an example for the old API but not the new one.
We've posted so many examples on how to accomplish what you're doing in YAML, but you still do it the wrong way!
Here is an example of SQLite - https://github.com/dutok/SimpleHome/blob/master/src/SimpleHome/SimpleHome.php#L17-L27)
Well... I would say, saving in YAML basically means saving in arrays, strings and primitive data types. If you can't properly use arrays, sorry. Only one way out.
If the config is not created I believe it will not return why using @mkdir.
Just something I have been hearing...
Wow... a year already.