RP-Kit / RPKit

RPKit plugin suite
Apache License 2.0
21 stars 12 forks source link

Added chat name color override functionality #663

Open dmccoystephenson opened 1 month ago

dmccoystephenson commented 1 month ago

Problem

It is not currently possible to set your chat name to be a different color than the chat itself.

Solution

The 'setchatnamecolor' command has been added to allow players to set their chat name color.

Testing

This was tested using the rpk-mc-server project by spinning up a minecraft server that had the rest of the RPKit suite (v2.4.0) installed. These changes have not been tested against the v2.5.x versions of the rest of the RPKit suite.

Chat name colors can now be set and persist upon a restart.

It should be noted that the first time a player chats after logging in, their name appears green, but subsequent chat attempts use the specified color as expected.

Issues

This resolves #627.

The ability for operators to set the chat name colors of others needs to be added before this fully resolves #658.

Dependent PR

This PR depends on #665 and should be merged after.