evaera / Cmdr

Extensible command console for Roblox developers
https://eryn.io/Cmdr/
MIT License
363 stars 104 forks source link

Players type that supports display names #335

Open autonordev opened 3 weeks ago

autonordev commented 3 weeks ago

Inspired by this DevForum post. Obviously we can't (it's not licenced) copy this code 1:1, nor should we (it's not particularly good), but it did give me the idea.

Perhaps we can create a prefix within players for this player by display name type. While @ is only meant to be used before usernames, many places - including the official Creator Hub - use @[display name] (¬_¬) so I don't see an issue with us doing it.

The obvious caveat is that display names are not unique, so this type would need some way to discriminate between duplicates.