hburn7 / BanchoSharp

C# library for communicating with osu!Bancho
GNU General Public License v3.0
11 stars 2 forks source link

Prioritize player ID when targeting them in commands #21

Open matte-ek opened 1 year ago

matte-ek commented 1 year ago

Currently, when targeting players with commands such as !mp host, the library will use the player names directly. This can however cause issues when either

  1. The player names have spaces in them, which will have to be changed to underscores (_).
  2. The player name contains any words that Bancho is censoring.

Instead, using player IDs, like for example !mp host #10826852, would solve these issues directly. Player IDs will only be avaliable after !mp settings has been ran with the player present.