jpenilla / MiniMOTD

Minecraft server/proxy plugin to set the server list MOTD using MiniMessage for formatting, supporting RGB colors.
https://modrinth.com/plugin/minimotd
MIT License
290 stars 32 forks source link

[Feature Request] MOTD Override based on papi expression #208

Open lerokko opened 2 months ago

lerokko commented 2 months ago

Is your feature request related to a problem? Please describe. I have a development environment that Iike to run in offline mode to make "unit testing" with bots easier. I thouht "hey wouldn't it be cool if the motd reflects that?". SO when running in insecrue mode I could set a different motd to remind me that this server is runnig in offline mode.

Describe the solution you'd like I would like to have a list of overrides motds. A list where i can define an expression that supports papi placeholders and if it evaluates to true a custom motd (or random list of motds) is displayed (switch case from to to bottom). Depending on the implementation and versatility of this feature it could even cover something like this other feature request https://github.com/jpenilla/MiniMOTD/issues/126 (time sensitive motds). You are only limited by what papi addons you can get your hands on.

Describe alternatives you've considered No, idea to be honest. But I am open for them.

Additional context I know that for my specific example there is no placeholder (on that show the server online/offline mode) but I still think the idea is neat and has a lot of potential (server full, event, time/date, etc)