Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

admin: Setting change messages #589

Open
SpeedyFolf opened this issue Jan 1, 2025 · 0 comments
Open

admin: Setting change messages #589

SpeedyFolf opened this issue Jan 1, 2025 · 0 comments

Comments

@SpeedyFolf
Copy link
Contributor

SpeedyFolf commented Jan 1, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant