Is your feature request related to a problem? Please describe.
No. We just want to add a new voting / donating incentive.
Describe the solution you'd like
Here's how this will work:
First, we need a command that allows people to suggest motds. Something like /motd
Then, we need to have a counter (probably some yml file) that can track how many MOTD suggestions a person can make.
We need a command (console/admin) that can grant /motd "credits". Maybe /motdcredit <playername> <credit-count>
Then, we'll implement a new Package on Tebex and a new reward on the custom Votiting plugin that runs this command if someone purchases the package or gets it randomly by voting
These /motd suggestions need to be added to a database in a secure way, in which we escape special characters, etc. Will probably want to use a completely separate database from anything else we have just in case.
This database will have four columns: player (UUID), suggestion (the text of their suggestion), approved (0 = not reviewed, 1 = approved, 2 = denied).
I will then make a local web interface through which I can approve/deny MOTD requests.
Our plugin will pull in these MOTDs on server startup and store them in Memory or in a YML file. We might limit how many get pulled per reboot and randomly select some from the list to prevent the Mem usage from getting out of control, though it will probably be minimal.
It will display these different MOTDs when players attempt to connect (after the startup MOTDs of course).
The plugin should also find instances of suggestions that have been denied (approved = 2) and then notify the player when they login and credit them back their /motd credit.
Additional context
This is a somewhat complicated thing and doesn't really do a lot for in-game experience so it's low priority. Just wanted to get it in the backlog for future reference.
Is your feature request related to a problem? Please describe. No. We just want to add a new voting / donating incentive.
Describe the solution you'd like Here's how this will work:
/motd
/motd
"credits". Maybe/motdcredit <playername> <credit-count>
/motd
suggestions need to be added to a database in a secure way, in which we escape special characters, etc. Will probably want to use a completely separate database from anything else we have just in case.player
(UUID),suggestion
(the text of their suggestion),approved
(0 = not reviewed, 1 = approved, 2 = denied).approved
= 2) and then notify the player when they login and credit them back their/motd
credit.Additional context This is a somewhat complicated thing and doesn't really do a lot for in-game experience so it's low priority. Just wanted to get it in the backlog for future reference.