Skip to content

admin: Setting change messages #589

Open
@SpeedyFolf

Description

@SpeedyFolf

Which resource(s) have this problem?

admin

Describe the bug

All these settings from the Server tab in admin panel show the HEX colour code instead of actually colouring the person's name in chat.
It doesn't describe the weather type when setting it blended, and it doesn't say who did it in chat.
It doesn't output a message for FPS limit to chat or the server log, only console.

[2025-01-01 15:53:00] [Output] : Weather set to '4 Blue Sky, Clouds' by #FF00FFSpeedyFolf.
[2025-01-01 15:53:01] [Output] : Blending weather to '5'
[2025-01-01 15:53:02] [Output] : Time set to 12:00 by #FF00FFSpeedyFolf.
[2025-01-01 15:53:03] [Output] : Gravitation value set to '0.008' by #FF00FFSpeedyFolf.
[2025-01-01 15:53:04] [Output] : Game speed set to '1' by #FF00FFSpeedyFolf.
[2025-01-01 15:53:05] [Output] : Waves height set to '0' by #FF00FFSpeedyFolf.
[2025-01-01 15:53:06] [Output] : Server FPS limit: 30

image

To Reproduce

Join a server where you are an admin, log in, press P to open the admin panel, click the Server tab, and click the Set button for each of the settings.

Expected behavior

The person's name should be coloured or at the very least have the HEX colour code stripped.
The blended weather message should have a description like the regular one and say who did it in chat.
It should output a message to chat and the server log when the FPS limit setting is changed.

That last part is easy to fix, just add this to messages.xml:

    <group action="setfpslimit" r="225" g="170" b="90">
      <all>FPS limit set to '$data'$by_admin_4all.</all>
      <log>ADMIN: $admin has set FPS limit to '$data'</log>
    </group>

I don't know how to change the other stuff myself though.

Version

Server: 1.6.0-9.22789
Client: 1.6.0-9.22864

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions