src/main/java/com/otherworld/owrp/AbstractCommand.java
@Override
    public boolean execute(CommandSender commandSender, String command, String[] arg) {
        if (getPermission() != null) {
            if (!commandSender.hasPermission(getPermission())) {
                if (getPermissionMessage() == null) {
                    commandSender.sendMessage(ChatColor.RED + "no permit!");
                }else {
                    commandSender.sendMessage(getPermissionMessage());
                }
                return false;
            }
        }
        if (onCommand(commandSender, this, command, arg))
            return true;
        commandSender.sendMessage(ChatColor.RED + getUsage());
        return false;

    }
/**
     * @param commandSender sender
     * @param command       command
     * @param arg           argument of the command
     *
     * @return true if ok, false otherwise
     */
@param commandSender sender
@param command       command
@param arg           argument of the command

@return true if ok, false otherwise
@param commandSender sender @param command command @param arg argument of the command @return true if ok false otherwise
@Override
    public boolean execute(CommandSender commandSender, String command, String[] arg) {
        if (getPermission() != null) {
            if (!commandSender.hasPermission(getPermission())) {
                if (getPermissionMessage() == null) {
                    commandSender.sendMessage(ChatColor.RED + "no permit!");
                }else {
                    commandSender.sendMessage(getPermissionMessage());
                }
                return false;
            }
        }
        if (onCommand(commandSender, this, command, arg))
            return true;
        commandSender.sendMessage(ChatColor.RED + getUsage());
        return false;
    }
@ Override public boolean execute ( CommandSender commandSender , String command , String [ ] arg ) { if ( getPermission ( ) != null ) { if ( ! commandSender . hasPermission ( getPermission ( ) ) ) { if ( getPermissionMessage ( ) == null ) { commandSender . sendMessage ( ChatColor . RED + "no permit!" ) ; } else { commandSender . sendMessage ( getPermissionMessage ( ) ) ; } return false ; } } if ( onCommand ( commandSender , this , command , arg ) ) return true ; commandSender . sendMessage ( ChatColor . RED + getUsage ( ) ) ; return false ; }
@param commandSender sender
 @param command       command
 @param arg           argument of the command
@param commandSender sender @param command command @param arg argument of the command