I want to make a function that if someone said or typed in console “ban all” or “pban all” or “kick all”, the executor would instantly get banned from the server (temporary).
If anyone has any ideas, (this should be made in basic admin module not as plugin)
please DM me. Thank you.
Might be because the admin separates the message pban all into command = pban and arguments = {all} and so when it looks for a command it looks for pban instead of pban all
You can always remove arguments “all”, “others”, “nonadmins”, “admins” so to execute command they have to include only one player or seperate them all with comma. You can change it in the MainModule.
Or for example you can create a script so if someone will say in chat or in console “pban all” then it will automatically kick them unless it is a head administrator or smth.