EssentialsX

EssentialsX

2M Downloads

messages_en variable for "has messages disabled" does not exist.

TomLewis opened this issue ยท 11 comments

commented

Hello, I have asked this before, the error message players receive when a player has /msgtoggle disabling people to msg them cannot be customized.
I have searched everything in messages_en.properties, and I have tried all the
msgDisabled, msgDisabledFor, msgEnabled, msgEnabledFor
What has been missed is the msgError, its nowhere to be found, the exact error message players receive is:
has messages disabled
in dark red.
I wish to amend this to tell players if they need help to create a support ticket.

commented

Bump

commented

@ImPat Don't bump again.

commented

@FrozenBeard Just by locating the command class (called Commandmsgtoggle) I can see the message nodes:
-msgEnabled
-msgDisabled
-msgEnabledFor
-msgDisabledFor

Check the latest jar's message.properties, or browse the code, hit t on your keyboard and type message.properties, and click the first thing.

Edit: Here's the actual message node which is called msgIgnore.

commented

What? im sure you havne't read the issue properly, this is the second time I have reported this and both times it has been misunderstood.
I don't know how to explain this without repeating myself.

I am not talking about those parameters at all, you are missing a parameter for the exact phrase
has messages disabled
Again, this is NOT the messages for when you toggle it, this is the ERROR message that OTHER PEOPLE get when they attempt to send a message to the person that has it disabled.

commented

Refresh ;)

Whoever added this didn't add the message to all files. To be safe, always check messages.properties.

commented

Can I just add this parameter or will I need to push a new jar?
Edit: Ah! I was checking messages_en.properties, I will check the messages.properties in the future!
Thank you.

commented

You can just add it to your current language file and it will pick up on it just fine. :)

commented

Thank you @SupaHam one last really quick question, can I add new lines to this messages_en.properties? Looking for a way to space out the error message.

commented

Yeah, any blank lines are ignored. You can also leave commands using #

####################
## ERROR MESSAGES ##
####################
...
commented

As in, new lines in-game, I cant just use a \n can I in messages?

commented

Oh right, yeah you can use \n