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}." },

 

  • Like 1
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • 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.