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

[bug] When a person sends a message, a error appears #243

Open
2 tasks done
fucksophie opened this issue Jan 11, 2025 · 1 comment
Open
2 tasks done

[bug] When a person sends a message, a error appears #243

fucksophie opened this issue Jan 11, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@fucksophie
Copy link

Are you using the latest available version for your server?

  • I am using the latest available version of fuji for my minecraft server.

Is there an existing issue for this?

  • I have searched the existing issues.

Current Behavior

log_debug_messages is disabled. quartz's logger_level is "WARN".

[13:59:13] [Server thread/INFO]: JSON-Element: {"text":"bald","hoverEvent":{"contents":"Danie_l is bald","action":"show_text"},"clickEvent":{"action":"run_command","value":"/op CMn1"}}
[13:59:13] [Server thread/INFO]: JSON: {"text":"bald","hoverEvent":{"contents":"Danie_l is bald","action":"show_text"},"clickEvent":{"action":"run_command","value":"/op CMn1"}}
[13:59:13] [Server thread/INFO]: [STDOUT]: {"text":"bald","hoverEvent":{"contents":"Danie_l is bald","action":"show_text"},"clickEvent":{"action":"run_command","value":"/op CMn1"}}
[13:59:13] [Server thread/INFO]: CMn1 : bald

The message JSON is sent 3 times for no reason.

Expected Behavior

The message JSON not to appear four times.

Steps To Reproduce

Simply install Fuji, and enable all chat related modules.

Server Logs

Anything else?

No response

@fucksophie fucksophie added the bug Something isn't working label Jan 11, 2025
@sakurawald
Copy link
Owner

sakurawald commented Jan 11, 2025

Hello, thanks for report.

Here are some suggests:

  1. You can use /fuji debug to set the level of FUJI logger to DEBUG. (This equals to set the log_debug_messages to true)
  2. If there is an error in the server.logs, please post the log file.
  3. The log message starts with JSON-Element: and JSON seems not printed by fuji, so i think there is other chat-related mods. The chat.rewrite and chat.replace will modify the chat message, one at the beginning of the chat event, one at the end of the chat event. If you are using other chat-related mods, check these 2 modules.
  4. The logger level of quartz is fine, since the quartz library uses its own logger. And fuji uses the logger created in Fuji.class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants