05-07-2015, 03:16 AM
05-07-2015, 03:21 AM
It's case-insensitive. It uses the RateCompareString function, and that compares each character by making them uppercase first: https://github.com/mc-server/MCServer/bl...s.cpp#L303
05-07-2015, 03:26 AM
Great, thanks for the solution.
Actually, thinking about this problem with plugins in general, I think we need a function DoWithClosestMatchedPlayer. Lots of functions require this and they all implement it slightly differently, inconsistently enough to be annoying to end users.
Do you think this is something that we need?
Actually, thinking about this problem with plugins in general, I think we need a function DoWithClosestMatchedPlayer. Lots of functions require this and they all implement it slightly differently, inconsistently enough to be annoying to end users.
Do you think this is something that we need?
05-07-2015, 03:39 AM
Isn't that what FindAndDoWithPlayer does?
05-07-2015, 04:05 AM
You're right, I read through the code and it does do that.
Then I need to change the documentation, it says that it'll run the callback on all matching players.
Then I need to change the documentation, it says that it'll run the callback on all matching players.