XeroSpaceAvorion / EndlessExpanse

The universe should not be limited, exploration and resources should not be exhausted by power players.
GNU General Public License v3.0
0 stars 1 forks source link

MOTD mod #4

Open Joeppie opened 6 years ago

Joeppie commented 6 years ago

What should the mod do?

send a settable Message of the day to all players when they join.

How can the mod do this?

A string variable should be consumed from the server.lua script and sent to players; this can be done adding a line to the onplayerjoined event in server/server.lua:

player:sendChatMessage("MOTD", 2, "XeroPoint, place your text inside this line, or add multiple lines by copying this line and modifying this same string"%_t);

How does , or should, the mod conform to the gameplay requirements outlined in

Not applicable to this mod.

Joeppie commented 6 years ago

This has been temporarily adressed through the use of a modification in server.lua causing it to always send a hardcoded MOTD. This however, requires a reboot.

Can easily be done by setting one or more server variables from a command and then printing these out consecutively so long as the values are not nil.