Get player's name?Solved
Hello, i am learning how to make plugins and i want to make a command for banning people but I'm stuck on how i would make the command ban people by there name if that makes sense. Ive looked through the Enhanced Mute and Ban System plugins but I'm still confused.
You can get the player's name with the field "displayName" in BasePlayer. Then you can find the player by their name with "BasePlayer.Find(string nameOrId)"
Enhanced Ban System would be using IPlayer, which is a universal player object provided by Oxide. Another example of this would be the Secure Admin plugin, which also has a ban command example.
Locked automatically