Mods / Automated Server Messages

Tags: #Other #QoL #Utility
Author: Just_Irish
Side: Server
Created: Aug 24th at 2:41 AM
Last modified: Aug 29th at 10:48 PM
Downloads: 95
Follow Unfollow 8

Latest release (for Vintage Story 1.21.0, potentially outdated):
Automated_Server_Messages_v1.1.0.zip  1-click install


Version 1.1.0 for game version 1.21.0 is published.

 

If you have any issues, please report them.

Automated Server Messages

Note: This mod was created almost exclusivly with the help of ChatGPT and Claude Sonnet 4. I have negligable knowledge in coding and could not have made this mod without these LLMs.

What Does This Mod Do?

With this mod you will be capable of setting up server-wide messages that everybody can see in the in-game chat window using commands in either the server terminal or the in-game chat window.

You can have as many messages as you want and they will stay persistent after a server shutdown or restart, so you will not have to recreate the message. I wanted to create this mod due to having my own server set up to automatically restart twice a day, but there was never any sort of notification. Thus, when the time came, everyone was immediately kicked off the server very abruptly. Since there was no way of knowing, players were always in the middle of something when the time came. So now, with this mod, I can now set up multiple messages that all players will recieve and hopefully warn them of the impending server restart.

Of course, this can be used for other things as well. Perhaps you run a public server and you want to have a recurring message about your Discord, or maybe you want your players to be aware of an issue that you are aware of and are intending to fix. It's entirely up to you within the capabilities of the script.

Do Keep In mind this mod uses the time of the hosts machine. So if you are renting a server you will need to figure out its time zone and base your messages off of that.

Commands for v1.1.0

  • /automsg add [HH:mm] [Type your message here!]
  • /automsg remove [index]
  • /automsg list
  • /help automsg

Commands for v1.0.2

  • /automsgtest
  • /automsg add [HH:mm] [Type your message here!]
  • /automsg remove [index]
  • /automsg clear
  • /automsg list

 

Explaining the Commands

 

  1. /automsgtest: simply a test broadcast. Typing this in chat will let you know if the mod is working or not. If it is working, you should see "Test" appear in the chat window.
  2. add: quite obviously will add a message, but you need the rest of the command for it to do so.
  3. [HH:mm]: references the time you want the message to trigger in a 24 hour format. So if you want your message to trigger at 3 in the afternoon (based on the host machines timezone),
    then you would type [15:00] (excluding the brackets).
  4. [Type your message here!]: Pretty self explanatory (exclude the brackets again).
  5. remove: specifically deletes a single automated message. You need the rest of the command for it to work.
  6. [index]: references the message you wish to delete in the order that it was made.
  7. clear: will delete every single automated message you have created. I'm pretty sure this is the equivalent to pouring bleach into your eyes.
  8. list: will show every single message you have created in the order that they were created.
  9. /help automsg: will list possible commands

 

Examples of the Commands Being Used

 

  • /automsg add 05:00 Server restart in 30 minutes.
    • A message will appear in chat stating that there will be a server restart in 30 minutes at 5:00 am, 12:00 pm, and 5:00 pm.

 

  • /automsg remove 4
    • This will remove the fourth message you created if you happen to have 4 automated messages made. If you have 5, the fifth automated message will now become the fourth since you just deleted the other one.

 

  • After creating 4 different messages and then using the command "/automsg list" you can see in the second image below that it gives each message a number based on when it was created, not when the message is supposed to trigger.

 

 

Future Plans

 

  • 1.21.x support
  • Option to add colors to the messages
  • Option to change font size (if it is possible)
  • GUI (if I have the time and capabilities)

Mod Version For Game version Downloads Released Changelog Download 1-click mod install*
1.1.0 45 Aug 29th at 10:48 PM Automated_Server_Messages_v1.1.0.zip 1-click install

 Version 1.0.2 --> 1.1.0

 

  1. Support for game version 1.21.0:
    • This required an entirely new code to be written, so similarities between the two are negligible.
  2. .Net 7 support --> .Net 8 support
  3. Removal of command `/automsg clear`
  4. Removal of command `/automsgtest`
  5. Support for a 27-word message. Any larger will return errors.
1.0.2
1.20.0 - 1.20.3 1.20.5 - 1.20.7 1.20.8 - 1.20.10 1.20.11 - 1.20.12
14 Aug 24th at 2:46 PM AutomatedServerMessages_v1.0.2.zip 1-click install

Updated .json to designate the mod as a server-side only mod.
Clients should no longer need to download it.

1.0.1
1.20.1 - 1.20.3 1.20.5 - 1.20.7 1.20.8 - 1.20.10 1.20.11 - 1.20.12
10 Aug 24th at 2:17 PM AutomatedServerMessages.zip 1-click install

.dll added, should now properly work in servers.

1.0.0
1.20.1 - 1.20.3 1.20.5 - 1.20.7 1.20.8 - 1.20.10 1.20.11 - 1.20.12
26 Aug 24th at 2:47 AM AutomatedServerMessages.zip 1-click install

BROKEN, DO NOT USE

Initial v1.0.0 upload.


4 Comments (oldest first | newest first)

💬 Just_Irish , 3 days ago (modified 3 days ago)

Easyd2 My apologies. I've been absent for quite a bit and have only just seen your message. I'll look into it and hopefully get an update pushed. Thanks for pointing it out as I'd have never known.

 

💬 Easyd2, Nov 9th at 11:01 AM

is there any other mod that can bring server messages to the server?

💬 Diff, Nov 7th at 7:45 AM

Easyd2 You're not doing something wrong. Looking at the code, it looks like the ability to save messages was lost in the update for 1.21.

💬 Easyd2, Nov 6th at 3:06 PM

Am i doing something wrong?  the server doesnt save the messages i create, when it restart the list is empty!   

 (edit comment delete)
Основной веб-сайт | Почтовый сервер | FTP сервер | Административная панель | API интерфейс | Content Delivery Network | Статические файлы | Ресурсы сайта | Изображения | Файловое хранилище | Блог | Интернет-магазин | Техническая поддержка | Справочная система | Документация | Форум | Новости | Загрузки | Демонстрация | Тестовая среда | Приложение | Медиа контент | Разработка | Промежуточная среда | Бета версия | Безопасная зона | Вход в систему | Панель управления | Портал | Система управления контентом