Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1074 thank(s) in 852 post(s)
It's the hooks that'll be slow - either you read an entire INI file whenever a player digs / places a block, or you keep all that data in memory (and risk losing it).
This is exactly the kind of situation that you want to use database for.
Posts: 4,628
Threads: 115
Joined: Dec 2011
Thanks: 693
Given 494 thank(s) in 423 post(s)
What do you think about the way I store bans in my ReWrite project for the Core. I load them in a table, and create an object with functions to edit/read it. Then I return the object.
Posts: 1,162
Threads: 68
Joined: Mar 2013
Thanks: 245
Given 125 thank(s) in 100 post(s)
I dont know how to use SQLite. If i learn I may rewrite storage.
Posts: 1,162
Threads: 68
Joined: Mar 2013
Thanks: 245
Given 125 thank(s) in 100 post(s)
I noticed my plugin is usseless, because you could break blocks from a protected chunk being out, Is there any way of getting the chunk pos of a coordinates? If no, it would be fine if you make a cWorld:GetChunkXat() and cWorld:GetChunkZat() functions. I made an issue on github