DiscordSRV / Staff-Chat

A staff-chat plugin that hooks into DiscordSRV
MIT License
29 stars 11 forks source link

Message config issue; #37

Closed D1sc0rdKitten closed 1 year ago

D1sc0rdKitten commented 1 year ago

( This is all referring to in-game, and may or may not affect the discord side of things! ) You are unable to config the messages and prefix with the DiscordSRV-Staff-Chat plugin. When you go to the messages.config.yml and change how the messages look, it doesn't completely work. You can change how the prefix looks, but that's about it. When you try to change how the messages themselves look, it works and saves but it doesn't change anything. It just looks the same in-game, the plain default given format '%prefix% %name%&7:&f %message%'. Also, when you do change the prefix. After reloading the plugin it works fine, no issues, but when you restart the server instead of showing the prefix you configured it to, it just shows the placeholder "%prefix%". (I couldn't recreate the issue with just reloading) Capture 1 Capture 2

RezzedUp commented 1 year ago

I'm unable to reproduce this behavior with DiscordSRV-Staff-Chat v1.4.4. This is my prefix/in-game chat format after restarting the server:

Although, what I suspect is happening is that your edited config contains formatting errors resulting in invalid YAML. This would explain why it uses the default prefix when reloading and ultimately no prefix at all when restarting. Please check your console for any YAML-related errors and run any changes you make through a YAML validator (like https://www.yamllint.com/).