ToberoCat / ImprovedFactions

Factions plugin for minecraft
GNU General Public License v3.0
11 stars 10 forks source link

[Suggestion] Add Multipaper support to the server core #10

Open Marmur2020 opened 2 years ago

Marmur2020 commented 2 years ago

This core was created so that several servers can rule the world, and also so that 1000+ players can come in. And the server because of this did not lag, as the core communicates with the servers and exchanges information world or plugin.

But the plugin does not support this as it updates the information only at startup (SQL or the same folder Data) and because of this faction or player information is not updated. To avoid this you need to update the information in real time or always. To not be asynchronous, if this happens, the player does not see information about the clan if he is not on the server where the player created faction.

Please make synchronization of files so they always can be read and rewritten. As for this kernel is very important.

How the core works (Read more here https://multipaper.io/howitworks.html) изображение_2022-07-23_162250041

ToberoCat commented 2 years ago

You're being covered with the first stable release of this plugin. I have added support for mysql database already, that is currently still being tested.

So the file based system is still only synching up with the stored files as soon as needed, to save cpu useage, for better performance, but when using mysql, it won't store anything locally anymore and just reads it every time form the mysql database. I already implemented this feature, but because of it, I have to rewrite the core system, to not use if statments that cost much of computation time.