I had always used sm_ban <name> <time> previously in order to ban someone from my server, however I recently created my own command so that when you type !ban in chat, it bans the person and does some other custom messages/logging afterwards
PHP Code:
public OnPluginStart()
{
RegConsoleCmd("ban", Command_CustomBan);
}
public Action Command_CustomBan(int client, int args)
{
//Stuff
}
I was just reading through
this page and noticed that apparently !ban is also able to be used by default as an alias for sm_ban (apparently you can omit sm_ from several commands this way). I haven't noticed any problems and whenever I type !ban it executes my code and not sm_ban, so does Sourcemod recognize when you create a command for one it has built in and give yours priority?