TotalFreedomMod icon indicating copy to clipboard operation
TotalFreedomMod copied to clipboard

New Command: /infomsg <identifier> [<playerName>]

Open StevenLawson opened this issue 11 years ago • 4 comments

We've avoided adding commands like /ai (which is part of a separate plugin that shows information about how to apply for super admin status) directly to TFM because they don't transfer well to other servers wanting to run TFM.

My suggestion is to add a command that can send a formatted block of text to a player. These blocks of text will have a textual identifier, and be stored in the config.yml file. For example, a user may type /infomsg admin, resulting in the "admin" text block being sent to them. Superadmins may also add a player name to have the text sent to someone else.

Doing this will allow us to reduce memory usage by getting rid of an extra running plugin.

I also suggest that we look in to how to add command aliases "on the fly". For example, an alias for /infomsg admin to be set dynamically in the config.yml as /ai.

StevenLawson avatar Sep 13 '14 16:09 StevenLawson

Could I suggest not having it in the config.yml? And having it and the announcements in a separate yaml file, that way the config can be cleaned up a bit (as it is very long) and its easier to find what you need if your running it on your own server.

Wild1145 avatar Sep 13 '14 22:09 Wild1145

Agreed. This would be handled by whatever is implemented for #320.

StevenLawson avatar Sep 13 '14 23:09 StevenLawson

So, the config is splitting up?

Alex33856 avatar Apr 22 '15 11:04 Alex33856

@AlexFreedomMod Please see the other issues that explain this.

Wild1145 avatar Apr 22 '15 13:04 Wild1145