Visual1mpact / Paradox_AntiCheat

A utility to fight against malicious hackers on Bedrock Edition.
GNU General Public License v3.0
35 stars 22 forks source link

like every command throws an error if you dont give args #41

Closed titushm closed 2 years ago

titushm commented 2 years ago

like every command throws an error if you dont give args

Visual1mpact commented 2 years ago

You are going to need to provide a better report then just that. This doesn't really explain the situation. It just tells me potential user error right now.

titushm commented 2 years ago

Not really tho, run just "!sethome" and have the creator error logs on

Visual1mpact commented 2 years ago

Ah, see what you mean. Minor issue. I will get that resolved.

Lacking something like this in the code for that specific command. I see there are some others where I forgot to do the same.

    // Are there arguements
    if (!args.length) {
        return goHomeHelp(player, prefix);
    }
Visual1mpact commented 2 years ago

Fixed in commit https://github.com/Visual1mpact/Paradox_AntiCheat/commit/8595e93075c50d21a6f666ab4b1f8e09bdee2e10