static boolean isAllowed(final CommandSender sender, final String permission, final String targetName) {
        // Always allowed for self
        if (sender.getName().equalsIgnoreCase(targetName)) return true;

        // Check if sender is allowed for all players
        if (sender.hasPermission(permission + ".player.*")) return true;

        // Check if sender is allowed for specific player
        if (sender.hasPermission(permission + ".player." + targetName)) return true;

        return false;
    }