cuberite / Essentials

Plugin for Cuberite that implements useful additional features, such as homes and warps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQLite rewrite

bennasar99 opened this issue · comments

Rewrite jails, homes and warps to use SQLite.
I don't know SQLite, so I won't do it soon, maybe some day if I learn.
Any volunteer?

commented

Just curious, what exactly is the advantage of SQLite?

Faster access to data.
Right now essentials is using ini files, which, specially in the case of jails, can be slow.

How is the jail done then? Does it check the INI file when the player moves or when the player joins? If it checks it when the player moves, then I suggest creating a cPlayerState object just like WorldEdit. In there you can save if the player is in jail or not.

I'm not quite sure, it's been a long time since I coded and tested it for the last time.
I will have a look.
Anyway, SQL would be better.

Yes, SQL would be better, but it's still better to save if someone is jailed in memory.