mod to highlight when a player joins or leaves?

User avatar
Joseph16
Member
 
Posts: 308
Joined: Tue Dec 06, 2016 05:35
In-game: Joseph16

Re: mod to highlight when a player joins or leaves?

by Joseph16 » Tue Jul 03, 2018 23:26

ExeterDad wrote:
Joseph13 wrote:But it will still show the “player left” messages won’t it?

No the message part is commented out, but it will still remove their name from the list which must happen.

To change the color to a green, change the needed messages to something like this:
Code: Select all
core.chat_send_all(core.colorize("#2aff00", "*** " .. player_name .. " joined the game100."))
core.chat_send_all(core.colorize("#2aff00", announcement))

In whatever code you posted earlier.

I did all those things, and now I get this when I join:
Image
its only showing the color coding part of the message. This is the message I used:
Code: Select all
core.chat_send_all("#2aff00", "Welcome to PorticoTown, " .. player_name .. "!")

Maybe a mistake on your end?

EDIT: I fixed the problem, now it works fine!
Attachments
screenshot_20180703_192311.png
(20.94 KiB) Not downloaded yet
Testin' mines since 1989
 

User avatar
Joseph16
Member
 
Posts: 308
Joined: Tue Dec 06, 2016 05:35
In-game: Joseph16

Re: mod to highlight when a player joins or leaves?

by Joseph16 » Wed Jul 04, 2018 01:19

The mod works perfectly! Thank you to everyone who helped me(mainly ExeterDad)
Screenshot of mod in action:
Image
Ignore the white text, I fixed that after I took the screen shot.
Attachments
screenshot_20180703_211305.png
(6.82 KiB) Not downloaded yet
Testin' mines since 1989
 

Previous

Return to General Discussion



Who is online

Users browsing this forum: No registered users and 12 guests