Proposed Message Standardisation
#21
The prefixes WILL be configurably optional. And updating will be needed from time to time anyway.
Reply
Thanks given by:
#22
They will be configureably in the function or in a config file?
Reply
Thanks given by:
#23
In a configuration file, of course.

For the plugin side of things, I'll just add extra SendMessage/BroadcastChat functions, not going to change the existing ones. Then, I'll submit PRs to WorldEdit to change everything to use appropriate functions.

I think it would be the easiest without exploding all plugins to bits or doing manual bindings.

Exploding all plugins to bits. heh

heh
Reply
Thanks given by:
#24
But is there a way to send a message to a player without any prefixes even if it is set in the config? Because as an example if you would use /help you would get a screen like:
[INFO] Page 1 out of 15.
[INFO] '-' means no prefix, '~' means a value is required.
[INFO] //copy - Stuff here
[INFO] //cut - Other stuff here
[INFO] //drain - Some more stuff
[INFO] //ex - Guess what comes here.
[INFO] //ext - Even more stuff.

I mean, say for yourself. That looks horrible.
Reply
Thanks given by:
#25
Looks fine to me. Anyway, Player:SendMessage would still work, right?
Reply
Thanks given by:
#26
Why not like this:
void SendMessage(const AString & a_Message, int a_PrefixType = ptNone);

So for default it wouldn't have any prefix at all.
Reply
Thanks given by: tonibm19
#27
That wouldn't break plugins, right?
Reply
Thanks given by:
#28
Mah gawsh peeps.

SendMessage sends a raw message to players, and server does not format it. Nothing is changed for this.
For SendMessageXXX, server performs formatting. These are the new functions.

That shouldn't break anything Smile
Reply
Thanks given by: NiLSPACE
#29
Thanks Wink I was getting worried because xoft said "SendMessage() might be marked as obsolete and might be removed later on."
Reply
Thanks given by:
#30
Oh. Xoft, is what I said what you intended to do? It seems to make our plugin writers happy?
Reply
Thanks given by:




Users browsing this thread: 3 Guest(s)