EngineHub / CommandBook

General and administrative commands
https://enginehub.org/commandbook/
GNU Lesser General Public License v3.0
145 stars 105 forks source link

AFK Component color tablist #260

Closed LadyCailinBot closed 4 years ago

LadyCailinBot commented 10 years ago

CMDBOOK-2397 - Reported by Baku

I noticed that when someone turns afk their name in the tablist turns gray and also gets stripped of any possible nickname and color that was present previously, and when going un-afk again their name will be default white and regular minecraft username.

So could there possibly be a feature to disable the AFK component's ability to change the tablist stuff to avoid it interfering with plugins that alter color and nicknames?

LadyCailinBot commented 10 years ago

Comment by Baku

Alternative I guess would be if it saves the old nickname and color in a variable, for the tablist it uses that nickname but strips it from colors and adds the gray onto it and when the player go un-afk again it reverts back to what was saved in the first variable if that would be something possible.

LadyCailinBot commented 10 years ago

Comment by Dark_Arc

Fixed as of https://github.com/sk89q/commandbook/commit/b5e850deeee09e461002a52b292d76414e0ea964