private void inviteToChannel(ChatChannel channel, ProxiedPlayer player, CommandSender sender) {
		if (player != null) {
			if (channel.containsMember(player.getName())) {
				String msg = plugin.CHANNEL_IS_MEMBER;
				msg = msg.replace("%player", player.getName());
				msg = msg.replace("%channel", channel.getName());
				sender.sendMessage(msg);
				return;
			}
			
			channel.invitePlayer(player.getName());

			String pmsg = plugin.PLAYER_INVITE;
			pmsg = pmsg.replace("%channel", channel.getName());
			pmsg = pmsg.replace("%sender", sender.getName());
			player.sendMessage(pmsg);

			String imsg = plugin.PLAYER_INVITED;
			imsg = imsg.replace("%player", player.getName());
			imsg = imsg.replace("%channel", channel.getName());
			sender.sendMessage(imsg);
		} else
			sender.sendMessage(plugin.PLAYER_NOT_ONLINE);
	}