EssentialsX

EssentialsX

2M Downloads

Currency won't be changed even IF I change it in the config.yml file

baph0metsdaughter opened this issue · 12 comments

commented

Type of bug

Compatibility issue, Other unexpected behaviour

/ess dump all output

https://essentialsx.net/dump.html?id=db7ead4249494bf886f02f70e3bef0a0

Error log (if applicable)

No response

Bug description

As mentioned in the title, me and my friends are having a big issue with the currency change. We want to replace the currency symbol with a word, 14 characters long. No symbols, only letters. The file is saved as UTF-8 like the creator said in the note inside the config

Set this to a currency symbol you want to use.

Remember, if you want to use special characters in this document,

such as accented letters, you MUST save the file as UTF-8, not ANSI.

And we did, still no change. I also wanted to have the currency in the suffix, after the amount of money. Even with the dollar sign, no change. Is this a bug or am I doing something wrong? Please help and try to describe everything as detailed as possible. Thank you!

Steps to reproduce

I go into the config.yml

looking for the line where I can change currency (line 803 I guess)
changed it, also set currency-symbol-suffix: true

doing /reload on the Server

Expected behaviour

Should actually change into

example: 15 Frühlingsrollen
(Frühlingsrollen should be the currency, insider joke in my Community.)

Actual behaviour

Keeps being the '$' and being the prefix... No matter what I do

Additional Information

No response

commented

ah nvm, gimme a second. It now uses the currency as suffix but I can't use letters after all, only symbols. if I try to make a word or any letter it changes back to $, at least as suffix.

dump: https://essentialsx.net/dump.html?id=3b1da9663ea54ddb95a9a9c5625373cd

now it's this one.

commented

It doesn't look like your configuration changes are shown in the dump you posted.

doing /reload on the Server

Have you tried reloading EssentialsX using /essentials reload and/or restarting your server? /reload isn't officially supported by EssentialsX.

commented

You can change it. Just not to more than 1 character.

commented

yeah but that was exactly what I wanted. Can I change the max length anywhere?

commented

Have you tried reloading EssentialsX using /essentials reload and/or restarting your server? /reload isn't officially supported by EssentialsX.

right now I did but somehow it doesn't change anything, nothing after /essential reload or server reload. Changed back to $

commented

and btw how exactly do I say it as UTF-8? I used VSC for it and in the bottom right corner there was the 'UTF-8' so I think it was right. My friend told me he saved it as such already. Clicked on it, chose UTF-8 again and clicked 'save with encoding'

commented

No.

commented

I took a look at the code responsible for setting the currency symbol and unfortunately it appears that this is isn't a bug. Currency symbols that aren't a single non-integer character are deliberately set to "$".

commented

Currency symbols only accepts a single character.

commented

Currency symbols only accepts a single character.

So you can't even change it? To more?

commented

No.

bruh. That sucks. Anyway...Any idea with any other economy plug in where we can change the currency?

commented

No.

bruh. That sucks. Anyway...Any idea with any other economy plug in where we can change the currency?

No, sorry. An issue tracker probably isn't a great place to ask that kind of a question either. Maybe try the SpigotMC forums or something similar.