Custom command keeps calling itselfSolved
Hi was looking for some help with my issue. I was hoping somebody had info on a command that could ban a player while also not repeating the command used for in-game chat.

Context:
I made a command [Command("ban")] and it uses the covalence.Server.Command("global.ban" + *variable for player name* + " " + *variable for the reason*).
it works but also repeats the command over and over again.
very confused??? ....

Any reason this wont work for you?

https://umod.org/plugins/enhanced-ban-system

If not, the beauty of open source is you can look at the code to get some ideas on how to incorperate it into your own config?

You made ban command, that calls SAME ban command for SAME function you made, and it loops
By registering the 'ban' command you overwrote the 'global.ban' command, meaning that when you call:
covalence.Server.Command("global.ban" + *variable for player name* + " " + *variable for the reason*).​

you call your own command... Try renaming the command to 'customban' or something else to see if that fixes your problem.

Locked automatically