Essentials for MCServer
#5
I believe having N functions for what could be a single function and a parameter is stupid.
And now it is a single function with an extra parameter (only with an extra constructor):
a_Player:SendMessage(cCompositeChat("Message, like, whatever", mtInfo))
And it can be easily extended to include further parts, url or clickable commands:
a_Player:SendMessage(cCompositeChat("Usage: ", mtInfo)
  :AddSuggestCommandPart("/cmd verb1 verb2", "/cmd verb1 verb2", "u@b")
  :AddTextPart(" Param1 Param2", "@2")
)
Currently only GalExport is using this construct to its full potential, but I expect to implement it in WE and Gallery, too.
https://github.com/madmaxoft/GalExport/b...#L152-L154
Or even more advanced example:
https://github.com/madmaxoft/GalExport/b...#L415-L425
Reply
Thanks given by:


Messages In This Thread
Essentials for MCServer - by LO1ZB - 04-05-2014, 05:00 AM
RE: Essentials for MCServer - by tonibm19 - 04-05-2014, 05:26 AM
RE: Essentials for MCServer - by tigerw - 04-05-2014, 07:48 AM
RE: Essentials for MCServer - by gv1222 - 04-05-2014, 11:28 AM
RE: Essentials for MCServer - by xoft - 04-05-2014, 05:01 PM
RE: Essentials for MCServer - by tigerw - 04-07-2014, 03:01 AM
RE: Essentials for MCServer - by bearbin - 04-07-2014, 03:28 AM
RE: Essentials for MCServer - by xoft - 04-07-2014, 05:34 AM
RE: Essentials for MCServer - by pikachu784 - 04-16-2014, 04:09 PM
RE: Essentials for MCServer - by LO1ZB - 04-18-2014, 01:27 AM
RE: Essentials for MCServer - by tonibm19 - 04-18-2014, 03:39 AM
RE: Essentials for MCServer - by LO1ZB - 04-21-2014, 06:03 AM
RE: Essentials for MCServer - by NiLSPACE - 04-21-2014, 06:16 AM
RE: Essentials for MCServer - by LO1ZB - 08-08-2014, 10:23 PM
RE: Essentials for MCServer - by LO1ZB - 08-09-2014, 03:46 AM



Users browsing this thread: 1 Guest(s)