Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOTD mod #4

Open
Joeppie opened this issue Dec 21, 2017 · 1 comment
Open

MOTD mod #4

Joeppie opened this issue Dec 21, 2017 · 1 comment
Assignees

Comments

@Joeppie
Copy link
Contributor

Joeppie commented Dec 21, 2017

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 Joeppie self-assigned this Dec 21, 2017
@Joeppie
Copy link
Contributor Author

Joeppie commented Dec 26, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant