Update AbilityUtils.java

This commit is contained in:
Daniil547 2020-10-06 16:08:44 +00:00 committed by GitHub
parent fe79de9bb7
commit 5d8d10b02d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,8 +287,8 @@ public final class AbilityUtils {
/**
* Checks if the passed String is a valid command name. Command name is text of a command without leading '/'
*
* @param commandName the command's name to be checked for validity
* @return whether the command's name is valid
* @param commandName the command name to be checked for validity
* @return whether the command name is valid
*/
public static boolean isValidCommandName(String commandName){
if (commandName == null || commandName.length() > 31) return false;