Jump to content

Player name and title swapped in title lost messages

Pending 2.3.1

HunterZ
HunterZ

Posted (edited)

My players submitted the attached screenshots to me today:

image.png

image.png

I had read other reports of this issue, which were responded with a suggestion to delete the language files.

First, I have only ever run version 2.3.1.

Second, I did in fact delete the language files - and it didn't help.

Third, I am a fellow plugin developer, and it's obvious from looking at the default language string and the code that this is bugged:

SendReply(player, lang.GetMessage(player.userID == loser ? "losttitle" : "tooktitle", this), taker.displayName, conf.CategorySettings[category].Title);
{"losttitle", "You have lost the title {0} to {1}." },

It's obvious that player name is going into parameter 0, and title is going into parameter 1, which will make the message say "You have lost the title SomePlayer to SomeTitle" - i.e. backwards.

Edited by HunterZ
HunterZ

Posted

P.S. I should note that "tooktitle" is probably fine, but I haven't verified:

{"tooktitle", "{0} has taken the title {1}." },

 

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.4m
Total downloads
Customers
10.8k
Customers served
Files Sold
155.9k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.