-
Notifications
You must be signed in to change notification settings - Fork 0
Adding currencies and database management in general #15
Comments
Why not ship the web server with the plugin? |
Uh, that is what this meant.... |
Also.. Me and @Thunder33345 had a detailed talk on this problem on Dev Union's discord and here is what we agreed on. |
I don't think that I will go for dropping the table since the |
Could we go further and have it that all other servers must connect to the same master instead of connecting to the database? Then we don't need to worry about concurrency at all. |
Umm they will be connecting to the same master no? |
I mean one of the servers is always used as the master, then all other servers always connect to the interface exposed by that server. These other servers will not connect to the database at all. |
No. All will connect to the database. |
That's what makes things challenging. Having a gate between database and user servers makes things much easier to handle. Plus, that works SQLite too. |
So here's the thing. I really don't want people using this plugin to add currencies via commands or via a config. It leads to some problems which I would like to avoid. So for example, servers not being synced with each other and likes. To avoid this I have 3 suggestions,
1) Separate plugin
Arguably, the most easy way to handle currency problems like adding, removing, editing currencies or the editing stuff in the database would be through another plugin.
Additionally for this plugin to work, ParoxityEcon will need to be disabled. This would hopefully avoid the database from getting messed up.
Commands or a config (more favorable) would be used to update the currencies in the database. The plugin, in short, would set the currencies in the database exactly as its set in the config and I don't think commands would be required at all, in this case.
2) Standalone program
A standalone program could be shipped along side the plugin which would allow the user to add, remove, edit currencies or the database (more focused on currencies for now).
The source code would be public and C# would be used for making it.
3) Website
Either a website could be shipped alongside the plugin or Paroxity will provide a platform so for example
econ.paroxity.net
(not final) which then would connect to the users database and provide the user with the ability to add, remove etc. the currencies and database.The source code again would be public and how the website would be made is a topic for another debate.
Open for comments, let me know what should be used and why that should be used. Also if you have any other suggestions then don't hesitate to pen them down. I am more in favor of handling this via another plugin due to it being the easiest to do and website being provided in the long run.
The text was updated successfully, but these errors were encountered: